Skip to content

Commit

Permalink
Merge pull request #30 from lionick/fix_auth_server_support
Browse files Browse the repository at this point in the history
Fix oauth authorization server metadata at openid-federation configuration
  • Loading branch information
rohe authored Feb 27, 2024
2 parents fbcaa09 + adba8a2 commit a526f2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/fedservice/appserver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ def get_server(self, *args):
return self

def get_metadata(self, *args):
# static ! Should this be done dynamically ?
return {'openid_provider': self.context.provider_info}
return {self.name: self.context.provider_info}

def setup_authz(self):
authz_spec = self.config.get("authz")
Expand Down
4 changes: 4 additions & 0 deletions src/fedservice/appserver/oauth2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from fedservice.appserver import ServerEntity

class Oauth2ServerEntity(ServerEntity):
name = "oauth_authorization_server"

0 comments on commit a526f2f

Please sign in to comment.