Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

How to get Auth token to be used by my frontend? #63

Open
medkbadri opened this issue Apr 26, 2020 · 3 comments
Open

How to get Auth token to be used by my frontend? #63

medkbadri opened this issue Apr 26, 2020 · 3 comments

Comments

@medkbadri
Copy link

medkbadri commented Apr 26, 2020

Hello,

I tried the sample application (node) and it's working fine.
I'm even able to extract the keycloak auth token as cookie from the authorization header with an envoy filter.
Now, I'm in the phase of experimenting with the adapter with angular js. Authorization bearer header is unfortunately no longer available and I can't find a solution to extract the auth token.

Any help please?
Thanks

@medkbadri
Copy link
Author

medkbadri commented Apr 26, 2020

I don't know if setting session.AccessToken and session.IdentityToken as cookies is good idea in https://github.com/ibm-cloud-security/app-identity-and-access-adapter/blob/development/adapter/strategy/web/web.go :) so that it can be used by front end app

@ghfalcon7
Copy link

I'm encountering the same issue, any help with this is really appreciated!

@mzeitlin
Copy link

mzeitlin commented Jul 15, 2020

+1 seeing this as well. Also, if I have a front end application calling a backend application, shouldn't the adapter use the cookie and automatically set the header information so backend validation does not fail? I am not seeing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants