Compare commits
3 Commits
main
...
feature-us
| Author | SHA1 | Date | |
|---|---|---|---|
| 9040ebd1ae | |||
| 731f4bdd91 | |||
| fe1a373d6d |
@ -284,7 +284,6 @@ func OAuth2Callback(ctx *gin.Context) {
|
|||||||
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
|
_, err := service.CastProvider.OAuthCodeToToken(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
zap.L().Info("OAuth2Callback error", zap.Error(err))
|
zap.L().Info("OAuth2Callback error", zap.Error(err))
|
||||||
|
|
||||||
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
|
ctx.Redirect(http.StatusFound, fmt.Sprintf("%s?%s", config.AppConfig.System.AuthRedirectUrl, "status=1"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,6 +46,10 @@ func init() {
|
|||||||
config.SetConsumerService(PressReleasesProvider)
|
config.SetConsumerService(PressReleasesProvider)
|
||||||
config.SetConsumerService(SecFilingProvider)
|
config.SetConsumerService(SecFilingProvider)
|
||||||
config.SetConsumerService(AyrshareProvider)
|
config.SetConsumerService(AyrshareProvider)
|
||||||
|
config.SetConsumerService(FilesProvider)
|
||||||
|
config.SetConsumerService(GovernanceProvider)
|
||||||
|
config.SetConsumerService(PressReleasesProvider)
|
||||||
|
config.SetConsumerService(SecFilingProvider)
|
||||||
|
|
||||||
if err := config.Load(); err != nil {
|
if err := config.Load(); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user