robrotheram / taiga-contrib-openid-auth

Taiga plugin for openid authentication
45 stars 25 forks source link

Add fallback options to username and added customizable mappings #14

Closed robrotheram closed 3 years ago

robrotheram commented 3 years ago

Fixes issue raise in #10 Adds fallback options for username preferred_username -> full_name -> username -> email

Also adds customizable mappings by setting the following fields

OPENID_ID_FIELD = "sub"
OPENID_USERNAME_FIELD = "preferred_username"
OPENID_FULLNAME_FIELD = "name"
OPENID_EMAIL_FIELD = "email"