user_manager v0.2.0 UserManager.UserManagerApi

External API for UserManager Workflows.

Functionality will be exposed here as workflows are added

Summary

Functions

Validates a name and password against a UserProfile, if successful returns a token based upon the Guardian token_type ‘authentication_source’

authenticates a user from a list of permissions. require_all is used to specify if all permissions are required or only a single_permission would be required to meet the requirement

Creates a User a UserProfile and Permissions

Looks up a user from a token

Functions

authenticate_user(name, password, authentication_source \\ :browser)

Validates a name and password against a UserProfile, if successful returns a token based upon the Guardian token_type ‘authentication_source’

authorize_claims(token, permission_list, require_all \\ true)

authenticates a user from a list of permissions. require_all is used to specify if all permissions are required or only a single_permission would be required to meet the requirement.

create_facebook_profile(user_id, facebook_code_token)
create_user(name, password, email)

Creates a User a UserProfile and Permissions

Default Create Permissions List is configurable in config: config :user_manager,

new_user_default_permissions: ###SomeGuardianPermissionListHere###
identify_user(token)

Looks up a user from a token