File tree Expand file tree Collapse file tree 5 files changed +35
-2
lines changed
share-oauth-repo/src/main
java/org/sharextras/oauth/repo/webscripts
templates/webscripts/org/sharextras/slingshot/oauth Expand file tree Collapse file tree 5 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1
- package org .alfresco . integrations . salesforce . chatter ;
1
+ package org .sharextras . oauth . repo . webscripts ;
2
2
3
3
import java .io .IOException ;
4
4
Original file line number Diff line number Diff line change 1
- package org .alfresco . integrations . salesforce . chatter ;
1
+ package org .sharextras . oauth . repo . webscripts ;
2
2
3
3
import java .io .IOException ;
4
4
import java .util .Date ;
Original file line number Diff line number Diff line change
1
+ <?xml version =' 1.0' encoding =' UTF-8' ?>
2
+ <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
3
+ <beans >
4
+
5
+ <bean id =" webscript.org.sharextras.slingshot.oauth.oauth-token.get"
6
+ class =" org.sharextras.oauth.repo.webscripts.GetOAuthToken" parent =" webscript" >
7
+ <property name =" oauth2CredentialsStoreService" >
8
+ <ref bean =" oauth2CredentialsStoreService" />
9
+ </property >
10
+ </bean >
11
+
12
+ <bean id =" webscript.org.sharextras.slingshot.oauth.oauth-token.post"
13
+ class =" org.sharextras.oauth.repo.webscripts.SaveOAuthToken" parent =" webscript" >
14
+ <property name =" oauth2CredentialsStoreService" >
15
+ <ref bean =" oauth2CredentialsStoreService" />
16
+ </property >
17
+ </bean >
18
+
19
+ </beans >
Original file line number Diff line number Diff line change
1
+ <webscript >
2
+ <shortname >OAuth2-get-token</shortname >
3
+ <description >Script to fetch an OAuth 2.0 token</description >
4
+ <url >/extras/oauth2/token/{name}</url >
5
+ <authentication >user</authentication >
6
+ <format default =" json" >any</format >
7
+ </webscript >
Original file line number Diff line number Diff line change
1
+ <webscript >
2
+ <shortname >OAuth2-save-token</shortname >
3
+ <description >Script to save an OAuth 2.0 token</description >
4
+ <url >/extras/oauth2/token/{name}</url >
5
+ <authentication >user</authentication >
6
+ <format default =" json" >any</format >
7
+ </webscript >
You can’t perform that action at this time.
0 commit comments