erlef / oidcc

OpenId Connect client library in Erlang & Elixir
https://hexdocs.pm/oidcc
Apache License 2.0
184 stars 49 forks source link

Validate / Cast Token Responses #306

Closed maennchen closed 11 months ago

maennchen commented 11 months ago

oidcc version

3.1.2-beta.1

Erlang version

26.2

Elixir version

1.15.7

Summary

oidcc should validate / cast token responses as it does for the provider metadata.

Current behavior

Given an Azure AD token response, the #oidcc_token_access.expires_in is a string and not a number as expected.

How to reproduce

Request token from Azure AD and check response.

Expected behavior

The fields of the token response should be cast and validated.