Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix guardian 0.14 compatibility #34

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Conversation

imranismail
Copy link
Contributor

No description provided.

@AlexKovalevych
Copy link

@imranismail is it possible to have two different PRs. One for 0.14 compatibility, another for ecto version update. E.g. i'm using mongodb, and ecto driver is not ready for 2.1 version, so that way i can still use guardian_db with 0.14 version fix and shouldn't wait till mongodb_ecto driver have 2.1 version support?

@imranismail
Copy link
Contributor Author

@AlexKovalevych sure, I'll separate them

@imranismail imranismail changed the title Fix guardian 0.14 compatibility and update ecto dependency to 2.1 Fix guardian 0.14 compatibility Jan 3, 2017
@imranismail
Copy link
Contributor Author

imranismail commented Jan 3, 2017

Okay, rewrote the history, good to go. Also someone already has a PR for Ecto update, so I'm skipping that

@doomspork
Copy link
Member

@imranismail the ecto update has been merged in, could you please resolve the conflicts?

@imranismail
Copy link
Contributor Author

@doomspork resolved!

@@ -53,8 +53,14 @@ defmodule GuardianDb do
Create a new new token based on the JWT and decoded claims
"""
def create!(claims, jwt) do
prepared_claims = claims |> Dict.put("jwt", jwt) |> Dict.put("claims", claims)
GuardianDb.repo.insert cast(%Token{}, prepared_claims, [:jti, :typ, :aud, :iss, :sub, :exp, :jwt, :claims])
prepared_claims =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for formatting this 💜

@doomspork doomspork merged commit 89808ea into ueberauth:master Jan 10, 2017
@doomspork
Copy link
Member

Thanks again @imranismail 😀

fpalluel added a commit to fpalluel/guardian_db that referenced this pull request Jan 13, 2017
@fpalluel fpalluel mentioned this pull request Jan 13, 2017
doomspork pushed a commit that referenced this pull request Jan 16, 2017
#40)

* Remove part of #34 since the original issue has been fixed in guardian

* code cleaning
doomspork pushed a commit that referenced this pull request Feb 5, 2017
* Remove part of #34 since the original issue has been fixed in guardian

* code cleaning

* Also accepts binary values for sweep_interval. May be useful when configuring application with environment variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants