Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Add UAA SP configuration to UAA IdP #3

Open
bisbos opened this issue Apr 27, 2016 · 8 comments
Open

Error on Add UAA SP configuration to UAA IdP #3

bisbos opened this issue Apr 27, 2016 · 8 comments

Comments

@bisbos
Copy link

bisbos commented Apr 27, 2016

Hi,

I am following the steps to configure SAML federation between UAA Service Provider (UAA SP) and UAA Identity Provider (UAA IdP)

On the Step 12,
./create-saml-sp.sh -n -m uaa-sp-metadata.xml -i

I am getting the error
uaac error
JSON::ParserError: 776: unexpected token at 'Invalid provider configuration.'

Could you please help me to resolve this issue

@irinaepshteyn
Copy link
Collaborator

irinaepshteyn commented Apr 28, 2016

Command you provided above to add service provider configuration is missing service provider name:
./create-saml-sp.sh -n uaa_sp_name -m uaa-sp-metadata.xml -i

It could be any arbitrary string without special characters

@bisbos
Copy link
Author

bisbos commented Apr 28, 2016

I executed it using the following command and getting the error
./create-saml-sp.sh -n testsp -m uaa-sp-metadata.xml -i

@bisbos
Copy link
Author

bisbos commented Apr 28, 2016

I am executing UAA in docker container and using mysql DB to manage the users and clients

I downloaded the IDP metadata from the url (Docker Host is 192.168.99.100) http://192.168.99.100:8080/saml/idp/metadata

I downloaded the SP metadata (uaa-sp-metadata.xml) from the url http://192.168.99.100:8081/saml/metadata/cloudfoundry-saml-login

Then I executed the command ./create-saml-sp.sh -n testsp -m uaa-sp-metadata.xml -i

@irinaepshteyn
Copy link
Collaborator

Could you please provide SP metadata (uaa-sp-metadata.xml)

@bisbos
Copy link
Author

bisbos commented Apr 29, 2016

Added the file to the repository
https://github.com/bisbos/bis

@DarioAmiri
Copy link
Collaborator

@bisbos Just a few extra questions?

  1. It seems like you are federating UAA to itself on the same zone. Why are you doing this?
  2. What is the error response you are getting from UAA? If you don't see one, modify the script by adding a "-v" to every curl command or "-t" to every uaac command in the script and please post the results.

@bisbos
Copy link
Author

bisbos commented May 3, 2016

I am running separate instances of uaa for SP and IDP eventhough I am using the same zone uaa

The response I am getting with "-t" with uaac command
400 Bad Request
RESPONSE HEADERS:
Server: Apache-Coyote/1.1
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Xss-Protection: 1; mode=block
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Content-Type: application/json;charset=UTF-8
Content-Length: 31
Date: Tue, 03 May 2016 17:13:42 GMT
Connection: close
RESPONSE BODY:
uaac error
JSON::ParserError: 776: unexpected token at 'Invalid provider configuration.'
/Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/json_pure-1.8.3/lib/json/common.rb:155:in parse' /Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/json_pure-1.8.3/lib/json/common.rb:155:inparse'
/Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/curl.rb:88:in print_response' /Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/curl.rb:38:inblock in class:CurlCli'
/Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/base.rb:272:in block (2 levels) in run' /Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/base.rb:258:ineach'
/Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/base.rb:258:in block in run' /Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/base.rb:257:ineach'
/Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/lib/cli/base.rb:257:in run' /Users/bbose/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/cf-uaac-3.2.0/bin/uaac:18:in<top (required)>'
/Users/bbose/.rbenv/versions/2.2.3/bin/uaac:23:in load' /Users/bbose/.rbenv/versions/2.2.3/bin/uaac:23:in

'

@irinaepshteyn
Copy link
Collaborator

@bisbos I added this issue to our board. You could follow the progress here: https://rally1.rallydev.com/#/30377833713d/detail/userstory/55374590406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants