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

feat: OAuth2: Implement OAuth 2.0 Implicit Grant #2058

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pietrygamat
Copy link
Contributor

@pietrygamat pietrygamat commented Apr 10, 2024

Implements OAuth2 Implicit Grant authorization

Screenshot from 2024-04-10 22-38-35

Description

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

resolves #2056
resolves #1901

@pietrygamat
Copy link
Contributor Author

FYI, the mockup is from

meta {
  name: implicit
  type: http
  seq: 6
}

get {
  url: http://localhost:8080/realms/bruno/protocol/openid-connect/userinfo
  body: none
  auth: oauth2
}

auth:oauth2 {
  grant_type: implicit
  callback_url: bruno://auth
  authorization_url: http://localhost:8080/realms/bruno/protocol/openid-connect/auth?login_hint=bruno-user
  client_id: brunoclient
  scope: openid
}

against locally started Keycloak.
For reproducable environment, place the following realm-export.json file in an empty directory and start Keycloak in Docker:

docker run -p 8080:8080 \
-e KEYCLOAK_ADMIN=admin \
-e KEYCLOAK_ADMIN_PASSWORD=admin \
-v $(pwd):/opt/keycloak/data/import:z quay.io/keycloak/keycloak:24.0.1 \
start-dev --import-realm

realm-export.json

@pietrygamat pietrygamat changed the title Feature: OAuth2: Implement OAuth 2.0 Implicit Grant feat: OAuth2: Implement OAuth 2.0 Implicit Grant Apr 10, 2024
@pietrygamat
Copy link
Contributor Author

While functional on its own, this may be superseded by #2077 where more complete overhaul of oauth2 is proposed, resulting in a more consistent user experience between different oauth2 grants.

@pietrygamat pietrygamat force-pushed the feature/oauth2-implicit branch 3 times, most recently from ec20c66 to 25e8ca2 Compare April 16, 2024 09:44
@helloanoop helloanoop requested a review from lohxt1 April 22, 2024 08:28
@pietrygamat pietrygamat force-pushed the feature/oauth2-implicit branch 4 times, most recently from 42ccf04 to 2a18fab Compare May 7, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OAuth2: Implement OAuth 2.0 Implicit Grant OAuth 2.0 Grant Type Authorization Code Get Access Token problem
2 participants