curveball / a12n-server

An open source lightweight OAuth2 server
Apache License 2.0
453 stars 49 forks source link

Don't throw 422 error when creating a new app (using autogenerated url) #408

Closed AminDhouib closed 2 years ago

AminDhouib commented 2 years ago

If you're creating a new app, all that is needed to be provided is the app name. The app url can be autogenerated.

However it seems that a 422 error is thrown when attempting to create a new app using only the app name (url should autogenerate).

To replicate this issue:

Go to 'Apps' Create new App. Enter an "App Name", but leave the "URL to app. Leave empty to auto-generate" textbar empty. Error 422 should be thrown (instead should have created the app and bring the user to the new app's main view).