Skip to content

Commit f8fa68c

Browse files
Merge pull request #51 from NYCU-SDC/chore/change-github-provider-to-nycu
Replace 'github' with 'nycu' in OAuthProviders enum
2 parents f630215 + 8146e05 commit f8fa68c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

service/auth.tsp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ namespace CoreSystem.Auth {
99
enum OAuthProviders {
1010
google: "GOOGLE",
1111
github: "GITHUB",
12+
nycu: "NYCU",
13+
}
14+
15+
enum OAuthLoginProviders {
16+
google: "GOOGLE",
17+
nycu: "NYCU",
1218
}
1319

1420
model RefreshToken {
@@ -27,7 +33,7 @@ namespace CoreSystem.Auth {
2733
op loginGoogle(
2834
@doc("The OAuth2 provider to use for login.")
2935
@path
30-
provider: OAuthProviders,
36+
provider: OAuthLoginProviders;
3137

3238
@doc("The callback URL of the OAuth2 login. [See details](https://clustron.atlassian.net/wiki/spaces/CS/pages/41320449/Authentication+Process)")
3339
@query

0 commit comments

Comments
 (0)