Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#server.contextPath=/resource
#server.port=8081
server.contextPath=/spring-security-oauth-resource
server.port=8081
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#server.contextPath=/server
server.contextPath=/spring-security-oauth-server
server.port=8081
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#server.context-path=/ui
#server.port=8080
server.contextPath=/spring-security-oauth-ui-implicit
server.port=8081
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@


<oauth
site="http://localhost:8080/spring-security-oauth-server"
site="http://localhost:8081/spring-security-oauth-server"
client-id="clientId"
redirect-uri="http://localhost:8080/spring-security-oauth-ui-implicit/index"
redirect-uri="http://localhost:8081/spring-security-oauth-ui-implicit/index"
scope="read"
template="oauthTemp">
</oauth>
Expand Down Expand Up @@ -44,7 +44,7 @@
});

$scope.foo = {id:0 , name:"sample foo"};
$scope.foos = $resource("http://localhost:8080/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'});
$scope.foos = $resource("http://localhost:8081/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'});

$scope.getFoo = function(){
$scope.foo = $scope.foos.get({fooId:$scope.foo.id});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#server.context-path=/ui
#server.port=8080
server.contextPath=/spring-security-oauth-ui-password
server.port=8081
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

app.controller('mainCtrl', function($scope,$resource,$http,$httpParamSerializer,$cookies) {
$scope.foo = {id:0 , name:"sample foo"};
$scope.foos = $resource("http://localhost:8080/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'});
$scope.foos = $resource("http://localhost:8081/spring-security-oauth-resource/foos/:fooId",{fooId:'@id'});

$scope.getFoo = function(){
$scope.foo = $scope.foos.get({fooId:$scope.foo.id});
Expand Down Expand Up @@ -50,7 +50,7 @@
$scope.login = function() {
var req = {
method: 'POST',
url: "http://localhost:8080/spring-security-oauth-server/oauth/token",
url: "http://localhost:8081/spring-security-oauth-server/oauth/token",
headers: {
"Authorization": "Basic " + $scope.encoded,
"Content-type": "application/x-www-form-urlencoded; charset=utf-8"
Expand Down