Skip to content
This repository was archived by the owner on Jan 7, 2019. It is now read-only.

Conversation

cilim
Copy link
Contributor

@cilim cilim commented Sep 27, 2016

PR for issue #54

The implementation is working, but currently only request and unit specs are present. We need to add specs that mock the behaviour that's occurring on the Stormpath ID Site (authentication etc...).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.481% when pulling d1d58a4 on mc-id-site-login into 145a2da on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.481% when pulling 659f0b2 on mc-id-site-login into decbf60 on master.

@coveralls
Copy link

coveralls commented Sep 29, 2016

Coverage Status

Coverage increased (+0.3%) to 97.519% when pulling fc7b604 on mc-id-site-login into decbf60 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 97.519% when pulling c83a88c on mc-id-site-login into decbf60 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.488% when pulling 5d2b30f on mc-id-site-login into decbf60 on master.

1 similar comment
@coveralls
Copy link

coveralls commented Oct 25, 2016

Coverage Status

Coverage increased (+0.2%) to 97.488% when pulling 5d2b30f on mc-id-site-login into decbf60 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 97.488% when pulling bc53734 on mc-id-site-login into decbf60 on master.

callback_url = Stormpath::Rails::Client.application.create_id_site_url(
callback_uri: root_url,
logout: true
)
Copy link
Contributor

@nikone nikone Oct 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would move to a seperate method

        private

        def callback_url
          Stormpath::Rails::Client.application.create_id_site_url(
            callback_uri: id_site_result_url,
            path: Stormpath::Rails.config.web.id_site.login_uri
          )
        end

callback_uri: id_site_result_url,
path: Stormpath::Rails.config.web.id_site.login_uri
)
redirect_to callback_url
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would move to a seperate method

        private

        def callback_url
          Stormpath::Rails::Client.application.create_id_site_url(
            callback_uri: id_site_result_url,
            path: Stormpath::Rails.config.web.id_site.login_uri
          )
        end

callback_uri: id_site_result_url,
path: Stormpath::Rails.config.web.id_site.register_uri
)
redirect_to callback_url
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would move to a seperate method

        private

        def callback_url
          Stormpath::Rails::Client.application.create_id_site_url(
            callback_uri: id_site_result_url,
            path: Stormpath::Rails.config.web.id_site.login_uri
          )
        end

end
end
end
end
Copy link
Contributor

@nikone nikone Oct 31, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice one :D

but it would be good to also have remove method covered with service specs

@coveralls
Copy link

coveralls commented Nov 2, 2016

Coverage Status

Coverage decreased (-0.5%) to 96.735% when pulling 4c3c5fc on mc-id-site-login into decbf60 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 97.509% when pulling ed60b55 on mc-id-site-login into decbf60 on master.

@cilim cilim merged commit 28d467f into master Nov 2, 2016
@cilim cilim deleted the mc-id-site-login branch November 2, 2016 12:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants