NPR Show a web-based login/signup form to a user

NPR - Show a web-based login/signup form to a user

If the parameters passed to this endpoint are correct, it will redirect to `npr.org/oauth2/login` for the user to complete the sign-in. Currently acceptable values for `scope` are any combination of the following: - `identity.readonly` - for read-only access to the Identity Service - `identity.write` - for write access to the Identity Service - `listening.readonly` - for read-only access to the Listening Service - `listening.write` - for write access to the Listening Service - `localactivation` - for all access to the Local Activation Service It is generally suggested that you assume that you will need all of the current scopes in order to successfully implement an NPR One application. If the parameters passed in are NOT correct and the client passed in a valid `redirect_uri` parameter, the request will be redirected to `{{YOUR_REDIRECT_URI}}?error={{ERROR_TYPE}}&message={{ERROR_DESCRIPTION}}`. If the parameters passed are NOT correct and the client did not pass in a valid `redirect_uri` parameter, this endpoint will return the errors encoded as JSON objects (along with the corresponding HTTP status code -- usually 400). The latter is intended for development and debugging purposes -- in a real-world situation, errors returned as JSON objects are irretrievable by the client application, and thus passing in a valid `redirect_uri` is critical even for the purpose of capturing errors. If the user successfully logs in and authorizes the application, the request will be redirected to `{{YOUR_REDIRECT_URI}}?code={{AUTHORIZATION_CODE}}&state={{CSRF_TOKEN}}` If the user DENIES the application, they will be redirected to `{{YOUR_REDIRECT_URI}}?error=denied&message=The%20user%20has%20denied%20the%20login%20and%20access%20request&state={{CSRF_TOKEN}}`. This means that if your application flow requires a user to log in in order to proceed, it is up to you to give them the proper messaging explaining that the sign-in must be authorized in order to continue. Finally, please do not confuse an authorization code with an access token. Once your app has completed this flow, you will still need to call `POST /authorization/v2/token` in order to swap the code for a valid access token.

Posted on:

2018-08-28

API Description

Provider

NPR

decription

NPR delivers breaking national and world news. Also top stories from business, politics, health, science, technology, music, arts and culture. Subscribe to podcasts and RSS feeds.

Curl command through Streamdata.io

curl -v "https://streamdata.motwin.net/http://api.npr.orgauthorization/v2/authorize?X-Sd-Token={streamdata_token}&client_id={field_value}&redirect_uri={field_value}&response_type={field_value}&scope={field_value}&state={field_value}"



Return to Main Page



Submit Your API

Join the gallery to find out how much you can save with Streamdata.io.