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

Register using identity claims #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ziogaschr
Copy link

This PR allows identity info to be used for profile registration.

It can be used for fixing issues #5 and #14

Sorry for doing 3 commits, but I had hard time on fixing the line endings and the whole file was being parsed as a single line. If you can advice me on how to work around, I am happy to make a new PR.

The actual code changes are at lines 42-72.

Another PR will follow showing how this can be used, although here is some example code for anyone interested which can be used in get_oauth_identity():

if(isset($result_obj['name'])){
    $oauth_identity['username'] = strtolower($result_obj['name']); //PROVIDER SPECIFIC: this is how Authentiq returns the name address
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant