Skip to content

twigbit/ausweisident-backend-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

AusweisIDent Backend Examples

twigbit
AusweisIDent

See twigbit/ident-sdk for our Android SDK to implement the AusweisIdent functionality in your app.

Brief description

The AusweisIDent service implements standard OpenID Connect protocols. See auth0.com/docs/protocols/oidc for a good overview.

If you use our client-side IdentSDK, the URL to this serverless function should be provided in the AusweisIdentBuilder().redirectUrl("your-redirect-url") function in your Android App. Set the state parameter with the .state("...") function.

After a successful authentication this url will be called from your client after some redirects from the AusweisIDent service and be provided with your state parameter and a code.

Follow the following steps to receive the user data read from the ID card:

  1. Verify the state parameter (not shown in the example code) to mitigate CSRF attacks.
  2. Use the code to obtain an access token from the AusweisIdent OAuth2 Token Endpoint.
  3. Use the access token to get an user info token via the OAuth2 User Info Endpoint containing the personal data from the identification document.

See the example source code for a detailed implementation.

Examples

Node.js TypeScript ts-serverless

Releases

No releases published

Packages

No packages published