Skip to content

Latest commit

 

History

History
205 lines (150 loc) · 6.38 KB

home.md

File metadata and controls

205 lines (150 loc) · 6.38 KB

Namespace: \

Functions

oidc_keycloak_add_default_role_setting() : \array<mixed>

 oidc_keycloak_add_default_role_setting(\array&lt;mixed&gt;  $fields) : \array&lt;mixed&gt;

Summary

Adds a new setting that allows configuration of the default role assigned to users when no IDP role is provided.

Details:

Parameters:
Type Name Description
\array $fields The array of settings fields.

Returns: \array

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_add_login_button_text_setting() : \array<mixed>

 oidc_keycloak_add_login_button_text_setting(\array&lt;mixed&gt;  $fields) : \array&lt;mixed&gt;

Summary

Adds a new setting that allows an Administrator to set the button text from the plugin settings screen.

Details:

Parameters:
Type Name Description
\array $fields The array of settings fields.

Returns: \array

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_add_require_idp_role_setting() : \array<mixed>

 oidc_keycloak_add_require_idp_role_setting(\array&lt;mixed&gt;  $fields) : \array&lt;mixed&gt;

Summary

Setting to indicate whether an IDP role mapping is required for user creation.

Details:

Parameters:
Type Name Description
\array $fields The array of settings fields.

Returns: \array

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_login_button_text() : string

 oidc_keycloak_login_button_text(string  $text) : string

Summary

Modifies the OIDC login button text.

Details:

Parameters:
Type Name Description
string $text The button text.

Returns: string

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_map_user_role() : void

 oidc_keycloak_map_user_role(\WP_User  $user, \array&lt;mixed&gt;  $user_claim) : void

Summary

Set user role on based on IDP role after authentication.

Details:

Parameters:
Type Name Description
\WP_User $user The authenticated user's WP_User object.
\array $user_claim The IDP provided Identity Token user claim array.

Returns: void

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_role_mapping_setting() : \array<mixed>

 oidc_keycloak_role_mapping_setting(\array&lt;mixed&gt;  $fields) : \array&lt;mixed&gt;

Summary

Adds new settings that allows mapping IDP roles to WordPress roles.

Details:

Parameters:
Type Name Description
\array $fields The array of settings fields.

Returns: \array

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

oidc_keycloak_user_creation_test() : boolean

 oidc_keycloak_user_creation_test(boolean  $result, \array&lt;mixed&gt;  $user_claim) : boolean

Summary

Determine whether user should be created using plugin settings & IDP identity.

Details:

Parameters:
Type Name Description
boolean $result The plugin user creation test flag.
\array $user_claim The authenticated user's IDP Identity Token user claim.

Returns: boolean

Tags
Tag Version Description
package OpenidConnectGeneric_MuPlugin

Reports


This document was automatically generated from source code comments on 2020-08-24 using phpDocumentor and fr3nch13/phpdoc-markdown