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

Client Playground #53

Open
PascalSenn opened this issue Sep 28, 2022 · 0 comments
Open

Client Playground #53

PascalSenn opened this issue Sep 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@PascalSenn
Copy link
Member

In a dev environment you often need to be able to create access tokens. To generate these access tokens you must execute the authentication flow with the specific grant type of a client. To get an access token you currently must create a custom secret to be able to fetch a token. It would be helpful if IdOps had a client playground where you can verify that a client works correctly and that you can fetch a token.

  1. We need to be able to configure a client to "work" with the idops client playgorund. This should be just a flag that you can toggle in the client settings. This flag adds a secret which is not displayed in the UI under secrets and also add the redirect url of idops to the allowed redirect urls.
  2. The playground: The playground should have a dropdown which flow should be executed on the client. With a click on play, you should be able to fetch the access token. If possible also userinfo should be fetched. The token should then be displayed in it's base64 format and maybe also like jwt.io does it to inspect the claims in the token
  3. The flows
    3.1 Authroization Code Flow: We add redirect url https://idopsurl/client-signin-redirect. We encode the client id in the state value of the authorize request, and therefore get it back on the callback from the identity server. We then store the received token in the local storage and redirect the user to the Client playgorund (and display the token)
    3.2 Client Credentials: We request the token and display in in the Client.Playground
@PascalSenn PascalSenn added the enhancement New feature or request label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant