@@ -118,7 +118,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
118118 userChangeNotifier .OnUserDeleted (pluginManager .RemoveUser )
119119 userChangeNotifier .OnUserAdded (pluginManager .InitializeForUserID )
120120
121- ui .Register (g , * vInfo , conf .Registration , conf .OIDC .Enabled )
121+ ui .Register (g , * vInfo , conf .Registration , conf .OIDC .Enabled , conf . OIDC . IDPName )
122122
123123 if conf .OIDC .Enabled {
124124 oidcHandler := api .NewOIDC (conf , db , userChangeNotifier )
@@ -189,7 +189,12 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
189189 // schema:
190190 // $ref: "#/definitions/GotifyInfo"
191191 g .GET ("gotifyinfo" , func (ctx * gin.Context ) {
192- ctx .JSON (200 , & model.GotifyInfo {Version : vInfo .Version , Oidc : conf .OIDC .Enabled , Register : conf .Registration })
192+ ctx .JSON (200 , & model.GotifyInfo {
193+ Version : vInfo .Version ,
194+ Oidc : conf .OIDC .Enabled ,
195+ Register : conf .Registration ,
196+ OIDCIDPName : conf .OIDC .IDPName ,
197+ })
193198 })
194199
195200 g .Group ("/" ).Use (authentication .RequireApplicationOrClient ).POST ("/message" , messageHandler .CreateMessage )
0 commit comments