2024-09-14 12:47:25 -04:00
|
|
|
package builder
|
|
|
|
|
2024-09-18 02:22:17 -04:00
|
|
|
//
|
|
|
|
// func GetDiscovery(origin string) *types.DiscoveryDocument {
|
|
|
|
// baseURL := "https://" + origin // Ensure this is the correct base URL for your service
|
|
|
|
// discoveryDoc := &types.DiscoveryDocument{
|
|
|
|
// Issuer: baseURL,
|
|
|
|
// AuthorizationEndpoint: fmt.Sprintf("%s/auth", baseURL),
|
|
|
|
// TokenEndpoint: fmt.Sprintf("%s/token", baseURL),
|
|
|
|
// UserinfoEndpoint: fmt.Sprintf("%s/userinfo", baseURL),
|
|
|
|
// JwksUri: fmt.Sprintf("%s/jwks", baseURL),
|
|
|
|
// RegistrationEndpoint: fmt.Sprintf("%s/register", baseURL),
|
|
|
|
// ScopesSupported: []string{"openid", "profile", "email", "web3", "sonr"},
|
|
|
|
// ResponseTypesSupported: []string{"code"},
|
|
|
|
// ResponseModesSupported: []string{"query", "form_post"},
|
|
|
|
// GrantTypesSupported: []string{"authorization_code", "refresh_token"},
|
|
|
|
// AcrValuesSupported: []string{"passkey"},
|
|
|
|
// SubjectTypesSupported: []string{"public"},
|
|
|
|
// ClaimsSupported: []string{"sub", "iss", "name", "email"},
|
|
|
|
// }
|
|
|
|
// return discoveryDoc
|
|
|
|
// }
|