Anthony Smith

Results 62 comments of Anthony Smith

Digging deeper I found `Mail.Parsers.RFC2822.parse_recipient_value/1`. We may be able to use this to provide a function that just returns an address. https://github.com/DockYard/elixir-mail/blob/master/lib/mail/parsers/rfc_2822.ex#L178-L184

@bcardarella I added typespecs to the `Mail` module. Let me know what you think.

For those of you who need to add OAuth provider capability to your API you can try the [doorkeeper](https://github.com/applicake/doorkeeper) gem. I've used it in the past and it works well.

This is what I have in initializers/doorkeeper.rb ``` ruby resource_owner_from_credentials do |routes| User.authenticate(params[:username], params[:password]) end ```

I also have this is my API controller ``` ruby private def current_user @current_user ||= User.find_by_id(doorkeeper_token.resource_owner_id) if doorkeeper_token end ```

:-1: Sorcery's responsibility is first and foremost managing user credentials. API authorization has nothing to do with managing credentials and is beyond the scope of the project. There are other...

@jamezilla What I don't agree with is turning sorcery into an oauth2 provider which is the impression I got from reading through this PR. After reading through the documentation in...

From my perspective I think separating out the submodules is a better solution. That may be personal preference but I find choosing what functionality is relevant for my app desirable....

Bypass also doesn't accept paths with double `/`. For instance `//fake` throws the `Route error` exception. I've never encountered an HTTP client or server that would reject this.

Agreed that prioritization on this should be revisited. Dependabot is pretty much broken for anyone using Yarn v2 / pnp.