#319 Replace the deprecated 'fedora' OIDC scope
Merged 7 years ago by abompard. Opened 7 years ago by abompard.
abompard/fedora-hubs oidc-scope  into  develop

file modified
+1 -1
@@ -9,7 +9,7 @@ 

  import flask.json

  import munch

  

- from flask.ext.oidc import OpenIDConnect

+ from flask_oidc import OpenIDConnect

\o/

  

  import hubs.models

  

file modified
+5 -1
@@ -23,7 +23,11 @@ 

  OIDC_ID_TOKEN_COOKIE_SECURE = True

  OIDC_REQUIRE_VERIFIED_EMAIL = False

  OIDC_OPENID_REALM = 'http://localhost:5000/oidc_callback'

- OIDC_SCOPES = ['openid', 'email', 'profile', 'fedora']

+ OIDC_SCOPES = [

+     'openid', 'email', 'profile',

+     'https://id.fedoraproject.org/scope/groups',

+     'https://id.fedoraproject.org/scope/cla',

+     ]

  

  # TODO - instead of 'develop', use the version from pkg_resources to figure out

  #        the right tag to link people to.  AGPL ftw.

Fixes #316

Also fixes an annoying flask_oidc import DeprecationWarning.

:thumbsup: Looks good!

Pull-Request has been merged by abompard

7 years ago
Metadata