I need some help in configuring omniauth_openid_connect gem (https://github.com/omniauth/omniauth_openid_connect). I have two endpoints one for Authorization and another for token:
Authorization endpoint: https://oauth.provider.com/authorize
Token endpoint: https://oauth-secured.provider.com/token
as you can see eachone has a different host, but are the same provider, Im not sure how to configure this in the gem as you can only specify one host
config.omniauth :openid_connect,
{
name: :openid_connect,
scope: [:openid],
issuer: "oauth.provider.com"
response_type: :code,
discovery: :true,
client_options:
{
port: 443,
scheme: "https",
host: "oauth.provider.com",
authorization_endpoint: "/authorize",
token_endpoint: "/token", #How to specify here correctly https://oauth-secured.provider.com/token
identifier: 'CLIENT_ID',
secret: 'CLIENT_SECRET',
redirect_uri: "https://myapp.com/users/auth/openid_connect/callback",
},
}