Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth: Create CERN OAuth blueprint to allow redirection to login.cern… #182

Merged
merged 1 commit into from
Dec 11, 2018

Conversation

ppanero
Copy link
Member

@ppanero ppanero commented Dec 5, 2018

Closes #180

In order to use it the blueprint should be added:

'invenio_base.blueprints': [
            'cern_oauth = invenio_oauthclient.contrib.cern:cern_logout_blueprint',
        ]

And the Flask Security config variable should be set up:

SECURITY_POST_LOGOUT_VIEW="/cern/logout"

@ppanero ppanero added this to Backlog in Invenio Sprint Dec 3 - Dec 14 2018 via automation Dec 5, 2018
@ppanero ppanero moved this from Backlog to Pending review in Invenio Sprint Dec 3 - Dec 14 2018 Dec 5, 2018
@cern_oauth_blueprint.route('/cern/logout')
def logout():
"""CERN logout view."""
return redirect("https://login.cern.ch/adfs/ls/partiallogout.aspx",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to have this url configurable... WDYT?
You can put it in REMOTE_APP config maybe.

Copy link
Contributor

@kpsherva kpsherva Dec 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also think the logout url should be in a config variable

@kpsherva kpsherva assigned kpsherva and unassigned kpsherva Dec 6, 2018
@ppanero ppanero moved this from Pending review to Pending merge in Invenio Sprint Dec 3 - Dec 14 2018 Dec 10, 2018
@lnielsen lnielsen merged commit 6bd5c9b into inveniosoftware:master Dec 11, 2018
Invenio Sprint Dec 3 - Dec 14 2018 automation moved this from Pending merge to Done Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants