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

OAuth UIDs and secrets should be generated, not manually edited #515

Open
alexmuller opened this issue Sep 27, 2016 · 1 comment
Open

OAuth UIDs and secrets should be generated, not manually edited #515

alexmuller opened this issue Sep 27, 2016 · 1 comment

Comments

@alexmuller
Copy link
Contributor

Feature request! We have some OAuth UIDs and secrets which are not as long as some other ones, and should be longer.

I think we should do the following:

  • The application page should not have editable text fields for UID and secret
  • UID and secret should have a minimum length of 64 characters enforced
  • There should be a "regenerate" button on the application page which makes new ones
@floehopper
Copy link
Contributor

Feature request! We have some OAuth UIDs and secrets which are not as long as some other ones, and should be longer.

I think we should do the following:

  • The application page should not have editable text fields for UID and secret

The UID is still an editable text field:

<%= render "govuk_publishing_components/components/input", {
label: {
text: "UID"
},
name: "doorkeeper_application[uid]",
type: "text",
hint: "The app has a copy of this. Used in the signin redirect dance.",
value: @application.uid,
} %>

The secret is still an editable text field:

<%= render "govuk_publishing_components/components/input", {
label: {
text: "Secret"
},
name: "doorkeeper_application[secret]",
type: "text",
hint: "The app has a copy of this. Used in the signin redirect dance.",
value: @application.secret,
} %>

  • UID and secret should have a minimum length of 64 characters enforced

There doesn't appear to be any validation enforcing a minimum length on these fields in either the DoorkeeperApplicationsController or the Doorkeeper::Application.

  • There should be a "regenerate" button on the application page which makes new ones

There doesn't appear to be any such button on the application page.

Given all the above, I think this is still a valid issue.

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