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

bug/feature - fetch correct =auth token for context broker #3751

Closed
ilarimikkonen opened this issue Jun 20, 2019 · 4 comments · Fixed by #3752
Closed

bug/feature - fetch correct =auth token for context broker #3751

ilarimikkonen opened this issue Jun 20, 2019 · 4 comments · Fixed by #3752
Assignees

Comments

@ilarimikkonen
Copy link
Member

what's up: We are currently fetching incorrect token for tenant / CB requests. Correct one needs to be fetched from https://accounts.tampere.apinf.cloud/oauth2/password (in tampere env). User needs to supply username (email) and password that are the same as account created to the keyrock that is used in this deployment / stack.

4 things are needed in the request:
basic auth with "username" and password, which are actually client id and client secret given by the keyrock (ask these detals from ilarimikkonen)

image

grant_type, username and password in body:

image

@ilarimikkonen
Copy link
Member Author

ilarimikkonen commented Jun 20, 2019

client id and secret are fetched from settings that are only visible for admin. This can go together with Tenant Manager url setting

@ilarimikkonen
Copy link
Member Author

illustration of ui 1:
image

@ilarimikkonen
Copy link
Member Author

image

@55
Copy link
Contributor

55 commented Jun 20, 2019

draft flow:

  1. client id and client secret to settings
  2. username and password to get new token
  3. when making request for a new token these four need to be in request
  4. response has values needed for user (most important ones are: access_token, refresh_token, expires_in)
  5. make it clear that user needs to copy values in response from request
  6. provide link to documentation with instructions on how to use it programatically.
  7. hide this whole thing if client id and client secret are not presented

@55 55 self-assigned this Jun 20, 2019
@55 55 added the in progress label Jun 20, 2019
@55 55 mentioned this issue Jun 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants