AppAuth JS Course

Welcome to AppAuth JS Online Course with live Instructor using an interactive cloud desktop environment DaDesktop. Experience remote live training using an interactive, remote desktop led by a human being!

#secure code Training

7 hours


What is AppAuth JS?

AppAuth for JavaScript is a client SDK for public clients for communicating with OAuth 2.0 and OpenID Connect providers following the best practice The library is designed for use in Web Apps, Node.js CLI applications, Chrome Apps and applications that use Electron or similar frameworks. It strives to directly map the requests and responses of those specifications, while following the idiomatic style of the implementation language. The library also supports the PKCE extension to OAuth which was created to secure authorization codes in public clients when custom URI scheme redirects are used. The library is friendly to other extensions (standard or otherwise) with the ability to handle additional parameters in all protocol requests and responses.


An example application using the library is included in the src/node_app folder.

Auth Flow

AppAuth supports manual interaction with the Authorization Server where you need to perform your own token exchanges. This example performs a manual exchange.

Fetch Service Configuration

AuthorizationServiceConfiguration.fetchFromIssuer(openIdConnectUrl) .then(response => { log('Fetched service configuration', response); this.configuration = response; this.showMessage('Completed fetching configuration'); }) .catch(error => { log('Something bad happened', error); this.showMessage(Something bad happened ${error}) });

Make Authorization Requests

this.notifier = new AuthorizationNotifier(); // uses a redirect flow this.authorizationHandler = new RedirectRequestHandler(); // set notifier to deliver responses this.authorizationHandler.setAuthorizationNotifier(this.notifier); // set a listener to listen for authorization responses this.notifier.setAuthorizationListener((request, response, error) => { log('Authorization request complete ', request, response, error); if (response) { this.code = response.code; this.showMessage(Authorization Code ${response.code}); } }); // create a request let request = new AuthorizationRequest({ client_id: clientId, redirect_uri: redirectUri, scope: scope, response_type: AuthorizationRequest.RESPONSE_TYPE_CODE, state: undefined, extras: {'prompt': 'consent', 'access_type': 'offline'} }); // make the authorization request this.authorizationHandler.performAuthorizationRequest(this.configuration, request);

Making Token Requests

this.tokenHandler = new BaseTokenRequestHandler(); let request: TokenRequest|null = null; if (this.code) { let extras: StringMap|undefined = undefined; if (this.request && this.request.internal) { extras = {}; extras['code_verifier'] = this.request.internal['code_verifier']; } // use the code to make the token request. request = new TokenRequest({ client_id: clientId, redirect_uri: redirectUri, grant_type: GRANT_TYPE_AUTHORIZATION_CODE,

Would you like to learn AppAuth JS?

Simply, click the "Book" button of AppAuth JS and proceed to the payment method. Enter your desired schedule of training. You will receive an email confirmation for AppAuth JS and a representative / trainer will get in touch with you.

Course Category:

   JavaScript II Training

Course Schedules

Date Time
December 13, 2021 (Monday) 09:30 AM - 04:30 PM
December 27, 2021 (Monday) 09:30 AM - 04:30 PM
January 10, 2022 (Monday) 09:30 AM - 04:30 PM
January 24, 2022 (Monday) 09:30 AM - 04:30 PM
February 7, 2022 (Monday) 09:30 AM - 04:30 PM
February 21, 2022 (Monday) 09:30 AM - 04:30 PM

AppAuth JS consultancy is available.

Let us know how we can help you.