You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@doc("Initiate OAuth flow for connecting an account to answer a question. This endpoint redirects (302) to the OAuth provider's authorization page. After authorization, the OAuth profile data (username, avatar_url) is stored as the answer and can be fetched via GET /responses/{responseId}/questions/{questionId}.")
39
+
@route("/oauth/questions/{provider}")
40
+
@get
41
+
opconnectOauthAccount(
42
+
@path
43
+
@doc("The OAuth provider to connect with (github or google).")
44
+
provider:CoreSystem.Auth.OAuthProviders,
45
+
46
+
@query
47
+
@doc("The response ID to associate this OAuth answer with.")
48
+
responseId:uuid,
49
+
50
+
@query
51
+
@doc("The question ID being answered.")
52
+
questionId:uuid,
53
+
54
+
@query
55
+
@doc("Optional redirect URL after OAuth completion.")
0 commit comments