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

ApiKey Unauthorized to Update Notification Preferences #3484

Closed
mmedic opened this issue Apr 11, 2020 · 6 comments
Closed

ApiKey Unauthorized to Update Notification Preferences #3484

mmedic opened this issue Apr 11, 2020 · 6 comments
Labels

Comments

@mmedic
Copy link

mmedic commented Apr 11, 2020

Describe the bug
When attempting to update user notification preferences using a master API Key, 401 is returned.

To Reproduce
Steps to reproduce the behavior:

curl --request POST \
  --url https://ombi.com/api/v1/Identity/NotificationPreferences/ \
  --header 'apikey: xxxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'content-type: application/json' \
  --data '[
	{
    "userId": "0480cfd0-29ee-434d-b155-e7dbe5283ec1",
    "agent": 2,
    "enabled": true,
    "value": "123456789"
  }
]'

Expected behavior
Operation should succeed. Same ApiKey can be used to retrieve preferences.

Screenshots
N/A

Logs (Logs directory where Ombi is located)
There is nothing in the logs.

Desktop (please complete the following information):

  • OS: macOS

Ombi Version (please complete the following information):

  • Version 3.0.4892
  • Media Server Plex

Additional context
None

@ombi-bot
Copy link
Contributor

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

@mmedic mmedic changed the title APiKey Unauthorized to Update Notification Preferences ApiKey Unauthorized to Update Notification Preferences Apr 11, 2020
@stale
Copy link

stale bot commented Jun 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 10, 2020
@stale stale bot closed this as completed Jun 17, 2020
@mmedic
Copy link
Author

mmedic commented Jun 17, 2020

This is still an issue

@hrfee
Copy link

hrfee commented Jan 25, 2022

Just ran into this issue on the latest version as well.

@mmedic
Copy link
Author

mmedic commented Jan 25, 2022

Through trial and error I figured out that the request needed a UserName header in addition to the API key. That worked for me.

@hrfee
Copy link

hrfee commented Jan 25, 2022 via email

hrfee added a commit to hrfee/jfa-go that referenced this issue Jan 25, 2022
doesn't work due to Ombi-app/Ombi#3484
committing to save progress.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants