-
Notifications
You must be signed in to change notification settings - Fork 82
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
Should the IAuthenticationProviderCallback methods return a Negotiator? #155
Comments
The problem was that you couldn't access view from |
yep - that's what I was trying to do and asked for that added.
Yep, so I can now do what I've been trying to do :) sweet!
er.. return an this is the bit i'm confused over, now :( i want to return a response result (ie. a view or a redirect). why would I return an INancyModule... when that is passed in? |
All the extensions exist on the interface. Now you can do:
In theory. Pull the CI build to test with. |
Yep - i get that .. but why would i want to RETURN the module .. instead of calling the extension inside my basically - now that you've added in the the two properties to the interface .. what would you recommend is the strong type I should return? remember - the developer might want to goto
|
You're not returning the module, I don't understand WTF you're asking... When you return |
yep - agreed. but u said this (which confused me)
which is not returning a view / as redirect. So - that's been cleared up... so what is the strong type to return? what is the base type of all of these? I thought I caould return an what about a |
Blah, man I never read what I write.
I mean it can accept |
HA 😄 so what should it return out of that method, now? |
Unless we're making it async in which case I need to look at Nancy impl. Nancy uses dynamic to evaluate the type and decide how to handle it, i.e if you return |
Urgh.. i was sooooooo afraid you were going to say I originally had that .. but was trying to avoid it. But - you're my nancy teacher so I'll change it to dynamic then. Deal? |
Yes. |
- Referencing the NancyFX MyGet library for the latest -pre which includes updates to the INancyModule interface. - Added a NuGet.config file to reference the MyGet api. - Removed the ICache (fixes SimpleAuthentication#145). - Removed the HttpClient code. Now uses the WorldDomination.HttpClient.Helpers package instead. - Provider key is not required to be sent to the Provider. The session now stores this. - IAuthenticationProviderCallback returns dynamic (closes SimpleAuthentication#155). - IAuthenticationProviderCallback methods are not async (closes SimpleAuthentication#151).
@phillip-haydon bud - now that you've added in a
ViewRenderer
andNegotiator
into the core Nancy with commit dabe211.... , should I be using theNegotiator
for the return type instead of aViewRenderer
?eg.
Negotiator Process(NancyModule nancyModule, AuthenticateCallbackResult result);
The 2x methods in this class can return various things. Generally -> a
View
to display some html or a Redirect (eg. 301 or 302).Because it can return a redirect, i'm thinking that i need it to return a
Negotiator
, right?The text was updated successfully, but these errors were encountered: