UserManager

Build StatusCoverage StatusEbertInline docs

A module for managing Users with Authentication and Authorization

This module is a collection of GenStage work-flows for managing Users and User Accounts.

Versions

Installation

https://hex.pm/packages/user_manager/0.1.0

def deps do
  [{:user_manager, "~> 0.1.0"}]
end

Environment Variables

export GUARDIAN_SECRET_KEY="SomeTemporarySuperSecretKeyOnlyIKnow!" export CIPHER_KEY_PHRASE="testiekeyphraseforcipher" export CIPHER_IV_PHRASE="testieivphraseforcipher" export CIPHER_MAGIC_TOKEN="magictoken" export FACEBOOK_APP_SECRET="your app secret" export FACEBOOK_CLIENT_ID="your app client id"

Api Usage

UserManager.UserManagerApi.create_user(name, password, email)

UserManager.UserManagerApi.authenticate_user(name, password, source \ :browser)

UserManager.UserManagerApi.identify_user(token)

UserManager.UserManagerApi.authorize_claims(token, permission_list, require_all \ true)

UserManager.UserManagerApi.create_facebook_profile(user_id, facebook_code_token)

Integrated Components

Scope

goals:

Documentation

https://hexdocs.pm/user_manager/0.1.0

Blog

https://excavationofimagination.wordpress.com/