File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ import (
1313 "code.gitea.io/gitea/modules/setting"
1414 "code.gitea.io/gitea/modules/timeutil"
1515 auth_service "code.gitea.io/gitea/services/auth"
16- "code.gitea.io/gitea/services/auth/source/oauth2"
1716 "code.gitea.io/gitea/services/context"
17+ "code.gitea.io/gitea/services/oauth2_provider"
1818
1919 "github.com/golang-jwt/jwt/v5"
2020)
@@ -139,7 +139,7 @@ func generateOIDCToken(ctx *context.APIContext) {
139139 idToken .RepositoryVisibility = "public"
140140 }
141141
142- signedIDToken , err := oauth2 .SignToken (idToken , oauth2 .DefaultSigningKey )
142+ signedIDToken , err := oauth2_provider .SignToken (idToken , oauth2_provider .DefaultSigningKey )
143143 if err != nil {
144144 ctx .JSON (http .StatusInternalServerError , & IDTokenErrorResponse {
145145 ErrorDescription : "unable to sign token" ,
You can’t perform that action at this time.
0 commit comments