Skip to content

OIDC Config endpoint in backend #324

Closed

Description

@andrei2699

call /api/config endpoint to receive something like

app.MapGet("/api/config/auth", (IConfiguration config) => Results.Ok(new
{
    Authority = config["Authentication:Authority"],
    ClientId = config["Authentication:ClientId"],
    Scope = config["Authentication:Scope"]
}));

in appsettings.json

{
  "Authentication": {
    "Authority": "https://login.microsoftonline.com/common/v2.0",
    "ClientId": "00000000-0000-0000-0000-000000000000",
    "Scope": "openid profile email api://my-app-backend/access_as_user"
  }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions