Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Out of Box Experience #116

Closed
VishalMadhvani opened this issue Apr 13, 2015 · 11 comments
Closed

Out of Box Experience #116

VishalMadhvani opened this issue Apr 13, 2015 · 11 comments

Comments

@VishalMadhvani
Copy link

Would it be possible to improve the Out of Box Experience with the Visual Studio Templates?

Ideally to get this up and running, it should be as simple as creating a new website (MVC), and in the startup file adding app.UseIdentityManager(); or app.Map("/idm", _ => { _.UseIdentityManager(); });

I've managed to get this to work once, but attempting beta5, with the host project as a reference, I can't seem to figure it out.

@brockallen
Copy link
Member

Since this is open source and I do this in my free time, I can't do everything -- feel free to submit a PR with a template or a sample that makes this better.

@VishalMadhvani
Copy link
Author

That was my intention @brockallen, but I cant even get it running now.
I'll wait until you've made more progress and try again.

@brockallen
Copy link
Member

It should be able to run -- does the host sample from the main github repo work? What errors are you having?

@VishalMadhvani
Copy link
Author

Tried working on this again tonight but wasn't having much luck again, so i thought i'd check the host project. I upgraded it to use the latest build of IdentityManager from NuGet and it broke.
Its redirecting me to /authorise which is causing a 404.

I tried adding SecurityConfiguration = new LocalhostSecurityConfiguration() to the IdentityManagerOptions incase that wasn't the default, but it didn't help.

@brockallen
Copy link
Member

I just downloaded the master repo from github as-is (so as to not accidentally use my dev solution) and it built and ran fine for me.

@brockallen
Copy link
Member

Also, do you have RAMMFAR enabled?

@bruceprentice
Copy link

Brock, I got yesterdays build, and the IdentityManager runs fine. Ran against both localhost and cookies
//[assembly: OwinStartup(typeof(StartupWithLocalhostSecurity))]
[assembly: OwinStartup(typeof(StartupWithHostCookiesSecurity))]

@brockallen
Copy link
Member

@bruceprentice ok, thanks for the update.

@brockallen
Copy link
Member

@VISHAL123 Ok, I discovered what's happening to you -- the request to ~/authorize is service from IdentityManager and your MVC application's routing is eating the request.

@brockallen
Copy link
Member

Ok, now I think I know what your issue was -- you don't have RequireSsl == false. The Microsoft OAuth middleware just does nothing if that's the case. I have put in an error message to help out for others. This is now in beta5-1.

@VishalMadhvani
Copy link
Author

Good spot @brockallen, I upgraded to beta5-3 and did indeed get the HTTPS messages.
Between that and a few wiring issues, I've got my project working with beta 5.

Now that its working, I'll have a look and see if there's anything I can do to reduce the amount of wiring needed to make this work on the default template.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants