RemoteStorage OAuth dialog

This commit is contained in:
2023-03-12 21:46:03 +01:00
parent 20c014607c
commit 7acc3b2106
7 changed files with 228 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
module OauthHelper
def scope_name(scope)
scope.gsub(/(\:.+)/, '')
end
def scope_permissions(scope)
scope.match(/\:r$/) ? "r" : "rw"
end
end