Current section

19 Versions

Jump to

Compare versions

5 files changed
+25 additions
-7 deletions
  @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7 7
8 + ## v0.12.0
9 +
10 + * Enhancements:
11 + * Add support for `allow_create` param in the authorization url.
12 +
8 13 ## v0.11.1
9 14
10 15 * Enhancements:
  @@ -50,7 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
50 55 ## v0.6.0
51 56
52 57 * Enhancements:
53 - * Add support for `max_age` param in the IDP
58 + * Add support for `max_age` param in the authorization url.
54 59
55 60 ## v0.5.1
56 61
  @@ -60,18 +65,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
60 65 ## v0.5.0
61 66
62 67 * Enhancements:
63 - * Add support for `branding` param in the IDP
68 + * Add support for `branding` param in the authorization url.
64 69
65 70 ## v0.4.0
66 71
67 72 * Enhancements:
68 - * Add support for `theme` param in the IDP
73 + * Add support for `theme` param in the authorization url.
69 74
70 75 ## v0.3.0
71 76
72 77 * Enhancements:
73 - * Improve plug adapters
74 - * Add IdpAdapter and MockAdapter
78 + * Improve plug adapters.
79 + * Add IdpAdapter and MockAdapter.
75 80
76 81 ## v0.2.0
  @@ -305,6 +305,17 @@ config :ueberauth, Ueberauth,
305 305 ]
306 306 ```
307 307
308 + By default IDP will allow users to create new accounts. Account creation
309 + can be configured either explicitly as a `allow_create` query value on the
310 + request path or in your configuration:
311 +
312 + ```elixir
313 + config :ueberauth, Ueberauth,
314 + providers: [
315 + amco: {Gamora, [default_allow_create: false]}
316 + ]
317 + ```
318 +
308 319 By default prompt is not present in the authorization url. Prompt can be
309 320 configured either explicitly as a `prompt` query value on the request
310 321 path or in your configuration:
  @@ -43,4 +43,4 @@
43 43 {<<"optional">>,false},
44 44 {<<"repository">>,<<"hexpm">>},
45 45 {<<"requirement">>,<<"~> 0.10">>}]]}.
46 - {<<"version">>,<<"0.11.1">>}.
46 + {<<"version">>,<<"0.12.0">>}.
  @@ -69,6 +69,7 @@ defmodule Gamora do
69 69 default_theme: "default",
70 70 default_branding: "amco",
71 71 default_strategy: "default",
72 + default_allow_create: true,
72 73 default_scope: "openid profile email",
73 74 uid_field: "sub"
74 75
  @@ -98,6 +99,7 @@ defmodule Gamora do
98 99 |> with_query_param(conn, :max_age)
99 100 |> with_query_param(conn, :strategy)
100 101 |> with_query_param(conn, :branding)
102 + |> with_query_param(conn, :allow_create)
101 103
102 104 redirect!(conn, Gamora.OAuth.authorize_url!(params, opts))
103 105 end
  @@ -2,7 +2,7 @@ defmodule Gamora.MixProject do
2 2 use Mix.Project
3 3
4 4 @source_url "https://github.com/amco/gamora-ex"
5 - @version "0.11.1"
5 + @version "0.12.0"
6 6
7 7 def project do
8 8 [