PhoenixOauth2Provider v0.4.0 mix phoenix_oauth2_provider.install View Source
Configure PhoenixOauth2Provider for your Phoenix application. This installer will normally do the following unless given an option not to do so:
- Append the :phoenix_oauth2_provider configuration to your
config/config.exs
file. - Generate appropriate migration files.
- Generate appropriate view files.
- Generate appropriate template files.
- Generate a
WEB_PATH/phoenix_oauth2_provider_web.ex
file.
Examples
mix phoenix_oauth2_provider.install
Option list
- A PhoenixOauth2Provider configuration will be appended to your
config/config.exs
file unless the--no-config
option is given. - A
--resource-owner MyApp.User
option can be given to override the default resource owner module in config. - A
--repo MyApp.Repo
option can be given to override the default Repo module. - A
--config-file config/config.exs
option can be given to change what config file to append to. - A
--controllers
option to generate controllers boilerplate (not default). - A
--installed-options
option to list the previous install options. - A
--uuid
option can be given to set up :uuid enabled tables in ex_oauth2_provider
Disable Options
--no-config
— Don’t append to yourconfig/config.exs
file.--no-web
— Don’t create thephoenix_oauth2_provider_web.ex
file.--no-views
— Don’t create theWEB_PATH/views/phoenix_oauth2_provider/
files.--no-templates
— Don’t create theWEB_PATH/templates/phoenix_oauth2_provider
files.--no-boilerplate
— Don’t create any of the boilerplate files.--no-provider
— Don’t run ex_oauth2_provider install script.