user_external icon indicating copy to clipboard operation
user_external copied to clipboard

Adding authentication via JSON REST API

Open msfuture opened this issue 4 years ago • 6 comments

Changes proposed in this pull request:

  • adding REST JSON API for external user authentication:
  • checks REST endpoint and gets optional and additional user data like groups and displayname

msfuture avatar Apr 02 '20 19:04 msfuture

thanks for your contribution @msfuture I'll take a closer look at it as soon as I find the time to do so...

violoncelloCH avatar Apr 10 '20 15:04 violoncelloCH

By the way: I'm already testing this type of authentication with about 400 accounts involved. No errors and automatical group assignment made life so much easier for my colleagues.

msfuture avatar Apr 20 '20 06:04 msfuture

There is a wrapper for Guzzle and Curl: IClient (and IClientService as factory`). An advantage is that a proxy configuration (at config.php) is automatically used.

kesselb avatar May 10 '20 21:05 kesselb

thanks for the hint @kesselb ! so that should definitely be used (also by the other backends)... @msfuture could you take a look at this? https://github.com/nextcloud/server/blob/master/lib/private/Http/Client/Client.php

violoncelloCH avatar Oct 04 '20 19:10 violoncelloCH

I'll take a look at this!

msfuture avatar Oct 22 '20 11:10 msfuture

Time went by so fast... But I finally got to it.

msfuture avatar May 26 '21 09:05 msfuture