UNI Login

Authentication ::: auth_unilogin
Maintained by Jan Aagaard Meier
This plugin allows users to login to moodle using the Danish UNI•Login service
Latest release:
10 sites
14 downloads
3 fans

Moodle UNI•Login authentication

Setup

  • Place the plugin in the folder auth/unilogin
  • You need codes and secrets for the webservice and application from UNI•C   


Settings

Applikations & WS ID + secrets

You should get these from UNI•C when registering


Login type

You can log users on in two way - using Single Sign-On (SSO) or Single Log In (SLI). Using SSO users are automatically logged in, if they are already logged into another service with theirUNI•Login. Using SLI they must always enter their credential.


Validation strategy

When a user has authenticated to UNI•Login he is sent back to moodle with a ticket. In addition to checking that the ticket matches the secret from  UNI•C, the ticket can be validated in two ways. 

Either all tickets are saved in the database, to ensure that a ticket is only used once, or a check is made to ensure that the ticket has beeen issued with a certain timeframe (see below).


Validation windows

The maximal age, in seconds that a ticket can have in order for it to be considered as valid. The window should not be shorter than the time it takes to redirect the user's browser.


Login behaviour, text and selector

Login can work in two ways:

  • Link will insert a link on moodle regular login page, using javascript
  • Redirect will redirect the user as soon as they click login. This means users will only be able to login with uinlogin.


Lock user fields

Allows you to choose if the fields should be updated on creation or on each login, and if users should be allowed to update the fields themselves.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Jan Aagaard Meier (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Tue, Feb 24, 2015, 11:11 PM
    Thanks Jan for sharing this plugin with the community. It's written in a clean way and the code is easy to follow. I appreciate paying attention to many details in Moodle coding guidelines.
    While reviewing the code, I spotted two issues that are quite simple to fix now, yet could cause much more troubles if we started to distribute the plugin now. I reported them as issues #1 and #2 in your bug tracker.
    I'll be happy to approve this plugin once the reported issues are fixed and a new version is uploaded here.
  • Wed, Feb 25, 2015, 4:41 AM
    Thanks Jan for fixing the issues promptly. You are cleared to land now, welcome to the Plugins directory!
  • Wed, Feb 25, 2015, 4:22 PM
    Thanks for the swift review David smile
  • Sat, Mar 7, 2015, 4:46 AM
    Tak Jan - har set efter dette et stykke tid smile
  • Sat, Mar 7, 2015, 11:05 PM
    Det er jeg glad for at høre Anders. Jeg vil meget gerne høre din feedback på modulet, enten her eller på https://github.com/IT-Kartellet/moodle-auth_unilogin hvis du har nogle specifikke problemer.

    I øjeblikket understøtter modulet kun simpel login og oprettelse af brugere, men jeg tænker at man, hvis der er efterspørgsel for det, relativt nemt kunne udvide til at tildele roller og tilmelde kurser afhængigt af de funktionsmarkeringer som returneres fra UNI C
  • Wed, Jul 4, 2018, 9:41 PM
    Hej. Vi er interesseret i at udvikle Moodle til nogle danske skoler men der er i dag krav til brug af Uni Login. Vi vil meget gerne bruge Moodle Desktop og Moodle App. Vil Uni Login virke med disse platforme? Paa forhaand tak. Mvh Morten
  • Tue, May 21, 2019, 9:48 PM
    Hej Jan. Jeg har et spørgsmål, som jeg håber lidt du kan svare på. Når jeg importerer brugere via csv i Moodle og og vælger deres UNI-login også under feltet IDnumber , så synkroniserer det også med UNI-login og de kan logge ind. Mit problem efter login beder Moodle efter at lave ny kode til Moodle og ligegyldig om man udfylder det, så sker der ikke rigtigt noget. Jeg tror det er import (csv) der er noget galt eller i integration med Moodle

    Min ser sådan ud f.eks:
    username,firstname,lastname,email,idnumber,deleted
    dan123,Dan,Nielsen,somemail@somedomain.not,dan123,0

    IDnumber er så unilogin navnet. Moodle importerer fint, men som sagt når brugeren logger ind,
    spørger den hele tiden efter nyt kodeord, men sletter du manuelt den oprettede brugere og opretter manuelt,
    så virker det fint med UNI-login.

    Har du en idé, mangler jeg et felt i min CSV eller er det noget helt andet?
Please login to post comments