queueyeue :)
-
If you don't have one already, create a superuser with
python manage.py createsuperuser
. -
From the django admin panel (http://localhost:8000/admin), go into
Sites
and change the site with ID 1 to domainlocalhost
and nameLocalhost
. -
Log in to the Dataporten Dashboard and register a new application for login. Name and description can be whatever, redirect url should be
http://localhost:8000/accounts/dataporten/login/callback/
. -
Accept the EULA and create the application.
-
In
Basic info
, make sureClient type
is set toconfidential
and that user interaction is required. -
Open
Permissions
from the left hand menu, make sure to accept these five scopes:email
,groups
,profile
,userid
,userid_feide
. -
In the django admin panel, create a new
Social application
with providerDataporten
and a descriptive name. Client ID and Secret can be found inOAuth Details
in the left hand menu of the Dataporten Dashboard of your app.
That's it! You can now use Feide login by going to http://localhost:8000/accounts/login. In the left hand menu of the Dataporten Dashbord of your app, you can also find Test users
, which you can use to test the integration without using your own Feide account.