IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 842 forks source link

Autologin by token on URL #1334

Closed Clifte closed 3 years ago

Clifte commented 3 years ago

I've an app that uses OpenId as authentication method. I wondering if is it possible to auto login in a Webview using only the access_token in the url.

example: http://base_url/callbackAutoLogin?jwt=asdkjaslkdj092i12alskdasklj

brockallen commented 3 years ago

That would be beyond the scope of this library.

Clifte commented 3 years ago

I don't know if the openid spec alow this token exchange, but I think it could be useful to create a method that receive this external token and create a browser session. how to do this?

brockallen commented 3 years ago

You'd have to come up with your own design for this.