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

Repos should be unique #2

Closed
jc00ke opened this issue Nov 3, 2012 · 1 comment
Closed

Repos should be unique #2

jc00ke opened this issue Nov 3, 2012 · 1 comment

Comments

@jc00ke
Copy link
Contributor

jc00ke commented Nov 3, 2012

Looks like we need a uniqueness validator

screencap

@schneems
Copy link
Member

schneems commented Nov 6, 2012

Good call, added this in heroku/issue_triage@d958bc4, closing this issue. Will add tests by @parndt shortly

@schneems schneems closed this as completed Nov 6, 2012
schneems added a commit that referenced this issue Apr 4, 2021
Updates omniauth because GitHub is deprecating query params which is used by the old omniauth.

To do this I updated to Omniauth 2+ which also required an update of devise. There's a change to the omniauth API which is talked about here:

heartcombo/devise#5236

Basically:
- Omniauth2 requires post (instead of GET)
- Omniauth 2 also needs this `omniauth-rails_csrf_protection` gem.

I added the gem and updated all `link_to` and `button_to` to include a `method: :post`. There is one controller redirect which apparently still seems to work, but it might be broken. I'm not sure how we could possibly preserve the existing behavior since you cannot redirect to a post. 

This gets tests to pass though. So it's good enough for the short term.

## Deprecation Email from GitHub

```
[GitHub API] Deprecation notice for authentication via URL query parameters
GitHub

Mar 6, 2021, 4:37 AM (5 days ago)

to Richard
Hi @schneems,

On March 6th, 2021 at 10:37 (UTC) your application (CodeTriage) used an access token (with the User-Agent Faraday v0.17.3) as part of a query parameter to access an endpoint through the GitHub API:

https://api.github.com/user

Please use the Authorization HTTP header instead as using the `access_token` query parameter is deprecated.

Depending on your API usage, we'll be sending you this email reminder on a monthly basis.

Visit https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param for more information about suggested workarounds and removal dates.

Thanks,
The GitHub Team
```

Need to use devise from GitHub due to this not being released yet heartcombo/devise#5327

# This is the commit message #2:

WIP Move omniauth links to post

Omniauth 2 requires post. heartcombo/devise#5236

```
Install the gem OmniAuth - Rails CSRF Protection
Add the link user_facebook_omniauth_authorize_path method: :post
```

TODO: Convert the rest of the links to `user_github_omniauth_authorize_path` to be post
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants