At line 1 changed 3 lines |
!!Enterprise Licenses Only\\ |
This plugin allows you to delegate access of OAuth providers. On the CrushFTP's login page next to the login button will appear the enabled provider's "__Signed in"__ button".\\ |
Currently __Google Sign-In__, __Microsoft Sign-In__, __Azure Active Directory B2C Sign in__ and __Amazon Cognito Sign in__ are supported.\\ |
Constraint: __Enterprise Licenses Only__\\ |
This plugin allows you to delegate access to OAuth ([https://en.wikipedia.org/wiki/OAuth]) providers. On the CrushFTP's login page next to the login button will appear the enabled provider's "__Signed in"__ button".\\ |
Currently __Google Sign-In__([Google Sign in Configuration]), __Microsoft Sign-In__([Microsoft Sign in Configuration]), __Azure Active Directory B2C Sign in__([Azure Active Directory B2C Configuration]) and __Amazon Cognito Sign in__([Amazon Cognito Configuration]) are supported.\\ |
At line 5 changed one line |
!!1. Google Sign-In\\ |
It only works through __HTTP__ or __HTTPS__ protocol.\\ |
First configure an HTTP(S) port item with OAuth Sign In configuration.\\ |
[attachments|http_port_oauth_item_settings.png]\\ |
At line 9 added 2 lines |
!!Supported types:\\ |
!1. Google Sign-In\\ |
At line 12 added 6 lines |
!2. Microsoft Sign-In\\ |
See [Microsoft Sign in Configuration]\\ |
!3. Azure Active Directory B2C\\ |
See [Azure Active Directory B2C Configuration]\\ |
!4. Amazon Cognito\\ |
See [Amazon Cognito Configuration]\\ |
At line 9 changed one line |
!!2. Microsoft Sign-In\\ |
!!Plugin Settings\\ |
At line 12 changed one line |
!!3. Azure Active Directory B2C\\ |
__1.__ __Username matching__ -> It filters the OAuth user name (Google Auth: email address, Microsoft Auth: user principal name). Allow multiple values separated by a comma. Domain filter is allowed (like *mydomain.com).\\ |
At line 14 changed 3 lines |
About Azure Directory B2C : [https://docs.microsoft.com/en-us/azure/active-directory-b2c/overview]\\ |
CrushFTP requires : __Tenant name__, __User flow name__, __Client ID__ of the App registration.\\ |
[CrushOAuth/b2c_azure_settings.png]\\ |
__2.__ __Allowed authentication types__: Google Sign-In, Microsoft Sign-In, Azure Active Directory B2C Sign in and Amazon Cognito Sign. Configure the sign-in button on HTTP(S) server.\\ |
At line 18 changed one line |
__Application registration__: Go to the App registrations and click on New registration:\\ |
__3.__\\ |
__a.__ __Skip OTP processing__: CrushOAuth plugin is not compatible with [OTP Settings] as IDP (identity provider) can have its own two-factor authentication. Turning the flag to true will skip OAuth users from CrushFTP's OTP process.\\ |
__b.__ __Remove email suffix from username__: It removes the email suffix of the user name. Like username "my_user@email.com" will be "my_user".\\ |
__c.__ __Get Cognito user info__: Gets more info about Amazon Cognito users (like custom attributes). It is related only to __Amazon Cognito Sign in__.\\ |
At line 20 changed one line |
[attachments|SMTP Microsoft Graph XOAUTH 2 Integration/new_registration.png]\\ |
__4.__ OAuth only used for Authentication ([User Manager] defines user's access.) -> If users already exist in CrushFTP's User Manager, you can use the CrushOAuth plugin __just for authentication__.\\ |
At line 22 changed one line |
Name it. Select __Single-page Application__ as platform. The redirect url must ends with :__WebInterface/login.html__. Then click on register.\\ |
__5.__ __Template Username__ -> The signed-in user inherits not just the settings, but the VFS items too (as Linked [VFS]). |
At line 24 changed one line |
[CrushOAuth/app_reg_config.png]\\ |
__Import settings from CrushFTP user__ -> The signed-in user inherits just the settings from this user. __It must have a value! __Default value would be : __default__ -> the default user of CrushFTP\\ |
At line 26 changed 13 lines |
Check the flag "__ID tokens (used for implicit and hybrid flows)__" at __Platform configurations__.\\ |
[CrushOAuth/b2c_id_token.png]\\ |
\\ |
Get __Application (client) ID__ from App registration -> Overview\\ |
\\ |
[CrushOAuth/b2c_client_id.png]\\ |
\\ |
Go to the __Preferences-> Ip/Servers__ and select the HTTP or HTTPS port item(__OAuth Sign in__ Tab) where you want to enable the __Azure Active Directory B2C__ button. Check the "__Enable Azure Active Directory B2C Sign in__" flag and provide the __Tenant name__, __User flow name__, __Client ID__ of the App registration (mentioned above).\\ |
[CrushOAuth/port_item_settings_b2c.png]\\ |
\\ |
Configure the CrushOAuth plugin and enable the flag: "__Enable Azure Active Directory B2C Auth__".\\ |
\\ |
!!4. Amazon Cognito\\ |
__6__ __OAuth Roles__ -> You can configure different Template Users (see 5.) based on IDP's (identity provider) attributes.\\ |
IDP Attribute examples:\\ |
{{{ |
At line 40 changed 18 lines |
About __Amazon Cognito__ : [https://aws.amazon.com/cognito/]\\ |
Create ([https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html]) or use one of your existing __Amazon Cognito user pool__: [https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html]\\ |
\\ |
Create or configure __app client__ of the user pool ([https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-client-apps.html]). \\ |
\\ |
App type : Select __Confidential client__.\\ |
Enable __Generate client secret__.\\ |
Allowed callback URLs: https://your.CrushFTP.domain.com__/WebInterface/login.html__\\ |
OAuth 2.0 grant types : __Authorization code grant__\\ |
OpenID Connect scopes : __OpenID__\\ |
\\ |
[CrushOAuth/cognito_user_pool_app_client_1.png]\\ |
[CrushOAuth/cognito_user_pool_app_client_2.png]\\ |
\\ |
Go to the __Preferences__-> __Ip/Servers__ and select the __HTTP or HTTPS__ port item(__OAuth Sign in__ Tab) where you want to enable the Amazon Cognito Sing-In button. Check the "Enable Amazon Cognito Sign in" flag.\\ |
Required info from __App client__ of the __User Pool__ : __Client ID__ and __Client Secret__.\\ |
Required info from __User Pool__ :\\ |
Cognito Domain Prefix: It is part of the __Cognito domain__ (Amazon console -> Amazon Cognito -> User Pools -> __User poll__ -> __App integration__ tab). It also contains the region of the User Pool.\\ |
Google Sign-In: |
email_verified, idp_user_info, given_name, family_name, email_verified, group |
|
Microsoft Sign-In: |
mail, idp_user_info, displayName, jobTitle, businessPhones, mobilePhone, officeLocation, group |
|
Amazon Cognito Sign-in: |
email, username, identities, cognito:username, cognito:groups, custom:<<defined custom attributes>> |
}}} |
Role examples : |
{{{ |
|
<<IDP attribute name>>=<<IDP attribute value>>,<<IDP attribute name>>=<<IDP attribute value>> : tmeplate user name |
|
At line 59 changed 2 lines |
{{{[domain_name].auth.[amazon region]}}}\\ |
User pool ID\\ |
cognito:groups=Azure_SAML,custom:groups:test_group_one |
or |
cognito:groups=*SAML*,custom:groups:test_group_one |
or |
cognito:groups=REGEX:.*SAML$,custom:groups:test_group_one |
}}} |
At line 62 changed 3 lines |
[CrushOAuth/cognito_client_id_secret.png]\\ |
[CrushOAuth/cognito_user_pool.png]\\ |
[CrushOAuth/port_item_settings_cognito.png]\\ |
IDP attribute value: Exact match, Simple Match (like *mail.com*), Regex match (like REGEX:<<the regular expression>>), if the value is an array you can reference only one of the array element (exact match only). Like (IDP Attribute value -> __groups:[["group1","group2"]__ -> you can match with __group1__)\\ |
\\ |
At line 66 changed one line |
Configure the __CrushOAuth__ plugin and enable the flag: __Enable Amazon Cognito Auth__. |
__7.__ VFS-related settings -> You can set custom [VFS] for CrushOAuth users.\\ |
At line 68 changed one line |
!!5. Plugin Settings\\ |
[attachments|plugin_settings.png]\\ |
At line 70 changed 2 lines |
|
__1.__ Username matching -> It filters the OAuth user name (Google Auth: email address, Microsoft Auth: user principle name). You can put multiple value separated by comma. Domain filter is allowed to (like *mydomain.com).\\ |
!!DMZ\\ |
At line 73 changed one line |
__2.__ Allowed authentication types\\ |
__1.__ Configure your OAuth Sign In settings on the DMZ's HTTP(S) port item.\\ |
__2.__ Configure the same OAuth Sign In settings on the Internal (Main) HTTP(S) port item. This port item must match with the port item configured at the DMZ template user's VFS. (See [DMZ])\\ |
At line 75 changed one line |
__3.__ OAuth only used for Authentication (User manager then defines user's access.) -> If the users already exists with username of the OAuth, you can use the plugin just for authentication.\\ |
[attachments|dmz_template_user_internal_port.png]\\ |
At line 77 changed one line |
__4.__ Template Username -> The signed in user inherits no just the settings, but the VFS items too (as Linked VFS).\\ |
__3.__ Configure the OAuth plugin __only on the Internal (Main) instance__. !!!Do not configure the OAuth plugin on the DMZ too. See __Plugin Settings__ on the current page.\\ |
At line 79 removed 6 lines |
Import settings from CrushFTP user -> The signed in user inherits just the settings from this user. __It must have a value! __Default value would be : __default__ -> the default user of CrushFTP\\ |
\\ |
__5.__ VFS related settings : You can also assign a VFS item for the signed in user.\\ |
\\ |
[attachments|plugin_settings.png]\\ |
\\ |