steffow / meteor-accounts-saml

SAML SP tested with OpenAM
27 stars 29 forks source link

Obtaining the SAML Token #6

Closed Gobliins closed 7 years ago

Gobliins commented 7 years ago

Hello,

after a succesfull SAML login i need the Token sent from the Server for further processing (Accessing resource Server URL with Token) . I am not this familiar with Javascript, so i have a bit trouble understanding all the code in this project.

Current situation is:

  1. Popup for SAML login appears
  2. Entering Login data
  3. Popup closes with no error When i access the page of my IDP i am logged in -> worked

Problem is i need the Token for accessing resources on the resource server.

Is it stored on the Meteor server somewhere or do i need to extend the existing code and call a function?

I checked the result of the helper function:

Meteor.loginWithSaml({
    provider:provider
}, function(error, result){
    //handle errors and result
});

but even if successfully logged in, the result is always undefined, only if something goes wrong i get an http 500 error.