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

Compatibility with ServiceStack Version 5.4.x #15

Closed
akiander opened this issue Dec 11, 2018 · 2 comments
Closed

Compatibility with ServiceStack Version 5.4.x #15

akiander opened this issue Dec 11, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@akiander
Copy link

I tried using this component in a ServiceStack version 5.4.0 web service and I was not able to use it.

The following code won't compile:

        this.Plugins.Add(new IdentityServerAuthFeature 
        {
            AuthProviderType = IdentityServerAuthProviderType.UserAuthProvider,
            AuthRealm = "http://identityserver:5000/", 
            ClientId = "ServiceStack.SelfHost", 
            ClientSecret = "F621F470-9731-4A25-80EF-67A6F7C5F4B8",              
            Scopes = "openid ServiceStack.SelfHost offline_access"
        });

due to these errors:

1>C:\Code\BITS\DiscountGuidanceService\DiscountGuidanceService\DiscountGuidanceService\AppHost.cs(109,34,109,59): error CS0012: The type 'IAppSettings' is defined in an assembly that is not referenced. You must add a reference to assembly 'ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43'.
1>C:\Code\BITS\DiscountGuidanceService\DiscountGuidanceService\DiscountGuidanceService\AppHost.cs(109,13,109,29): error CS0012: The type 'IPlugin' is defined in an assembly that is not referenced. You must add a reference to assembly 'ServiceStack, Version=4.0.56.0, Culture=neutral, PublicKeyToken=null'.

I tried downgrading ServiceStack to version 4.x to support this component but then other areas of the service code begin to fail.

Is there some simple way to get this Identity Server authentication working on version 5.4.x?

@wwwlicious wwwlicious added this to the 5.0.0 milestone Dec 29, 2018
@wwwlicious wwwlicious self-assigned this Dec 29, 2018
@nover
Copy link
Contributor

nover commented Jan 30, 2019

@wwwlicious would you be interested in a PR fixing this? I'm currently working in a fork to bring this up to 5.4 as I need it in a project.

It requires retargeting to netstandard2.0 and dotnet framework 4.6.2.

@wwwlicious
Copy link
Owner

@nover sure, a PR would be most welcome. 👍

@wwwlicious wwwlicious modified the milestones: 5.0.0, 5.0.1 Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants