mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
13 lines
356 B
Go
13 lines
356 B
Go
package fctl
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/zitadel/oidc/v2/pkg/client/rp"
|
|
)
|
|
|
|
func GetAuthRelyingParty(httpClient *http.Client, membershipURI string) (rp.RelyingParty, error) {
|
|
return rp.NewRelyingPartyOIDC(membershipURI, AuthClient, "",
|
|
"", []string{"openid", "email", "offline_access", "supertoken", "accesses"}, rp.WithHTTPClient(httpClient))
|
|
}
|