minor fix

This commit is contained in:
DOHA 2015-11-10 22:18:53 +02:00
parent 5e5c2ef54c
commit 4c6b19b91d
6 changed files with 13 additions and 12 deletions

View File

@ -1,2 +1,2 @@
#server.contextPath=/resource
#server.port=8081
server.contextPath=/spring-security-oauth-resource
server.port=8081

View File

@ -1 +1,2 @@
#server.contextPath=/server
server.contextPath=/spring-security-oauth-server
server.port=8081

View File

@ -1,2 +1,2 @@
#server.context-path=/ui
#server.port=8080
server.contextPath=/spring-security-oauth-ui-implicit
server.port=8081

View File

@ -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});

View File

@ -1,2 +1,2 @@
#server.context-path=/ui
#server.port=8080
server.contextPath=/spring-security-oauth-ui-password
server.port=8081

View File

@ -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"