How to setup OAuth 2.0 implicit grant flow to ShinyApp ?

35 views
Skip to first unread message

mariafa...@gmail.com

unread,
Oct 26, 2020, 8:08:39 AM10/26/20
to Shiny - Web Framework for R

How do we get the access_token from redirect URL implicit grant flow?

Example:

Request URL:
https://example.app/connect/authorize?client_id=implicit&scope=xxxx&redirect_uri=http:app/callback&response_type=token&state=xxxxxxx&nonce=xxxxxxx

Response:
https://example_redirect_uri/#access_token=xxxxxx&token_type=Beare&rexpires_in=1111&scope=xxxxxi&state=wwww

How can I implement implicit grant flow (response_type=token) and get the #access_token info with httr package in a shiny App.

Maybe via javacript it's possible - but i'm not very familiar with the language.

Anyone can help me?

Thank you !

Reply all
Reply to author
Forward
0 new messages