Skip to content

Commit 676c91b

Browse files
committed
fixing base path and scopes
1 parent 681be18 commit 676c91b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/services/jwt_auth/jwt_creator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def self.consent_url(state, api)
1717
scope = 'signature impersonation dtr.rooms.read dtr.rooms.write dtr.documents.read dtr.documents.write dtr.profile.read dtr.profile.write dtr.company.read dtr.company.write room_forms' if api == 'Rooms'
1818
scope = 'signature impersonation click.manage click.send' if api == 'Click'
1919
scope = 'signature impersonation organization_read group_read permission_read user_read user_write account_read domain_read identity_provider_read user_data_redact asset_group_account_read asset_group_account_clone_write asset_group_account_clone_read' if api == 'Admin'
20-
scope = 'signature webforms_manage' if api == 'WebForms'
20+
scope = 'signature webforms_read webforms_instance_read webforms_instance_write' if api == 'WebForms'
2121

2222
base_uri = "#{Rails.configuration.authorization_server}/oauth/auth"
2323
response_type = 'code'
@@ -47,7 +47,7 @@ def initialize(session)
4747
@client_module = DocuSign_Admin
4848
end
4949
if session[:api] == 'WebForms'
50-
scope = 'signature webforms_manage'
50+
scope = 'signature webforms_read webforms_instance_read webforms_instance_write'
5151
@client_module = DocuSign_WebForms
5252
end
5353

config/appsettings.example.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ default: &default
2323
rooms_host: "https://demo.rooms.docusign.com/restapi"
2424
monitor_host: "https://lens-d.docusign.net"
2525
admin_host: "https://api-d.docusign.net/management"
26-
webforms_host: ".services.docusign.net/webforms/v1.1"
26+
webforms_host: "https://apps-d.docusign.com/api/webforms/v1.1"
2727
allow_silent_authentication: true # A user can be silently authenticated if they have an
2828
# Active login session on another tab of the same browser
2929
# Set if you want a specific DocuSign AccountId, If false, the users default account will be used.

0 commit comments

Comments
 (0)