Skip to content

Commit

Permalink
Merge pull request #243 from kikkomep/fix/write-token-registration
Browse files Browse the repository at this point in the history
Fix registration of registry token with write scope
  • Loading branch information
kikkomep authored Oct 26, 2022
2 parents d568d49 + 74b7a8d commit 2decf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifemonitor/auth/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def enable_registry_sync():
logger.debug("Updated token: %r", registry_user_identity.token)
assert registry_user_identity, f"No identity found for user of registry {registry.name}"
assert registry_user_identity.token, f"No token found for user of registry {registry.name}"
settings.set_token(registry.client_name, registry_user_identity.token)
settings.set_token(registry.client_name, registry_user_identity.tokens['read write'])
current_user.save()
flash(f"Integration with registry \"{registry.name}\" enabled", category="success")
return redirect(url_for('auth.profile', currentView='registrySettingsTab'))
Expand Down

0 comments on commit 2decf60

Please sign in to comment.