commit
60ea63f40e
|
@ -1,2 +1,2 @@
|
|||
#server.contextPath=/resource
|
||||
#server.port=8081
|
||||
server.contextPath=/spring-security-oauth-resource
|
||||
server.port=8081
|
|
@ -1 +1,2 @@
|
|||
#server.contextPath=/server
|
||||
server.contextPath=/spring-security-oauth-server
|
||||
server.port=8081
|
|
@ -1,2 +1,2 @@
|
|||
#server.context-path=/ui
|
||||
#server.port=8080
|
||||
server.contextPath=/spring-security-oauth-ui-implicit
|
||||
server.port=8081
|
|
@ -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>
|
||||
|
@ -44,7 +44,7 @@ app.controller('mainCtrl', function($scope,$resource,$http) {
|
|||
});
|
||||
|
||||
$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});
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#server.context-path=/ui
|
||||
#server.port=8080
|
||||
server.contextPath=/spring-security-oauth-ui-password
|
||||
server.port=8081
|
|
@ -22,7 +22,7 @@ var app = angular.module('myApp', ["ngResource","ngRoute","ngCookies"]);
|
|||
|
||||
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});
|
||||
|
@ -50,7 +50,7 @@ app.controller('mainCtrl', function($scope,$resource,$http,$httpParamSerializer,
|
|||
$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"
|
||||
|
|
Loading…
Reference in New Issue