Module google_token

The google_token application verifies the integrity of Google ID tokens in accordance with Google's criterias.

Copyright © 2016 Ruel Pagayon

Behaviours: gen_server.

Authors: ruel@ruel.me.

Description

The google_token application verifies the integrity of Google ID tokens in accordance with Google's criterias. See: https://developers.google.com/identity/sign-in/web/backend-auth

Function Index

validate/1Validates the ID token.
validate/2Validates the ID token and it's aud against the client IDs specified.

Function Details

validate/1

validate(IdToken::binary()) -> {valid, #{}} | {invalid, term()}

Validates the ID token

validate/2

validate(IdToken::binary(), ClientIds::list()) -> {valid, #{}} | {invalid, term()}

Validates the ID token and it's aud against the client IDs specified


Generated by EDoc, Oct 17 2016, 14:26:09.