-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathREADME
70 lines (49 loc) · 1.98 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
NAME
RT-Authen-OAuth2 - External authentication for OAuth 2 sources, like
Google, Twitter, GitHub, etc.
DESCRIPTION
External authentication for OAuth2 sources.
RT VERSION
Works with RT 4.4 and 5
DEPENDENCIES
Requires Net::OAuth2::Profile::WebServer
INSTALLATION
perl Makefile.PL
make
make install
May need root permissions
Edit your /opt/rt4/etc/RT_SiteConfig.pm
Add this line:
Plugin('RT::Authen::OAuth2');
Add / Edit OAuth2 configs found in OAuth2_Config.pm
Clear your mason cache
rm -rf /opt/rt4/var/mason_data/obj
Restart your webserver
AUTHOR
Best Practical Solutions, LLC <[email protected]>
BUGS
All bugs should be reported via email to
L<[email protected]|mailto:[email protected]>
or via the web at
L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Authen-OAuth2>.
LICENSE AND COPYRIGHT
This software is Copyright (c) 2016-2025 by Best Practical Solutions LLC
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
METHODS
RequestAuthorization()
Creates an Authorization Request on behalf of the Resource Owner
(user), and initiates the OAuth 2 protocol with the Authorization
Server. The browser will redirect to the $OAuthRedirect endpoint
specified in the config.
LogUserIn()
Called from the $OAuthRedirect endpoint handler element. Validates
the user exists and is allowed to log in, auto-populates user
metadata returned from the OAuth 2 server, and sets up a session. If
successful, returns to the handler template element to redirect to
the final destination.
IDPLoginButtonImage()
Returns the appropriate login button image for the active OAuth 2
server. This is displayed on the RT login page.
LogOutURL()
Returns the appropriate logout URL active OAuth 2 server.