Search Unity

Question Add an openid-configuration endpoint

Discussion in 'Authentication' started by nanoSDK, Feb 28, 2023.

  1. nanoSDK

    nanoSDK

    Joined:
    Jun 28, 2020
    Posts:
    1
    Hi,

    In order to use standard JWT validators (e.g. https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-jwt-authorizer.html), we need to have the https://player-auth.services.api.unity.com/.well-known/openid-configuration endpoint with jwks_uri attribute.

    Something like this:
    Code (JavaScript):
    1. {  
    2.                         "issuer": "https://player-auth.services.api.unity.com",
    3.                         "jwks_uri": "https://player-auth.services.api.unity.com/.well-known/jwks.json"
    4.  }
    5.  

    Firebase (and others) provides this endpoint: https://securetoken.google.com/{project}

    Is it possible to add it to your public endpoints in order to easily validate Unity access tokens with custom backends?

    Thank you!