Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds realm name OIDC _security/oidc/prepare and _security/oidc/authenticate APIs responses #64966

Merged
merged 5 commits into from
Nov 16, 2020

Conversation

BigPandaToo
Copy link
Contributor

This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves #53161

…on to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161
@BigPandaToo
Copy link
Contributor Author

@elasticmachine update branch

@ywangd ywangd added :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) >enhancement v7.11.0 v8.0.0 labels Nov 12, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (:Security/Authentication)

@elasticmachine elasticmachine added the Team:Security Meta label for security team label Nov 12, 2020
Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have two questions:

  • We recently added the authentication field to OpenIdConnectAuthenticateResponse. This new field already has realm information and more. Do we still need to add another field which repeats the same info from authenticaton?
  • We haven't really been very consistent on how realm is rendered in requests and responses. Also metadata and audit log could have different format as well. So I wonder whether realm_name is really what we want to name this field. Other options could be:
    • realm - this is what is used in the prepare auth request
    • or an object of {"realm": {"name":"", "type":""}} - this is what is used for authentication and a few other places

@BigPandaToo
Copy link
Contributor Author

I have two questions:

  • We recently added the authentication field to OpenIdConnectAuthenticateResponse. This new field already has realm information and more. Do we still need to add another field which repeats the same info from authenticaton?

This is really a good point! Will remove it from OpenIdConnectAuthenticateResponse

@BigPandaToo
Copy link
Contributor Author

  • We haven't really been very consistent on how realm is rendered in requests and responses. Also metadata and audit log could have different format as well. So I wonder whether realm_name is really what we want to name this field. Other options could be:

    • realm - this is what is used in the prepare auth request
    • or an object of {"realm": {"name":"", "type":""}} - this is what is used for authentication and a few other places

I see we are not super consistant here. Using "realm_name" in api key APIs and "realm" for saml some saml APIs, and then there is {"realm": {"name":"", "type":""}}...

…on to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161
…on to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161
Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending CI pass.

…on to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161
@BigPandaToo BigPandaToo merged commit a306388 into elastic:master Nov 16, 2020
BigPandaToo added a commit to BigPandaToo/elasticsearch that referenced this pull request Nov 17, 2020
…henticate` APIs responses (elastic#64966)

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves elastic#53161

Co-authored-by: Elastic Machine <[email protected]>
BigPandaToo added a commit that referenced this pull request Nov 18, 2020
…henticate` APIs responses (#64966) (#65164)

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves #53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves #53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves #53161

* This change adds realm name of the realm used to perform authentication to the responses of _security/oidc/authenticate and _security/oidc/authenticate APIs

Resolves #53161

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
@BigPandaToo BigPandaToo deleted the OIDC_realm branch April 19, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team v7.11.0 v8.0.0-alpha1
Projects
None yet
4 participants