API management for 3rd party data consumers

2 Likes

I did clone the repo, was that at least correct??

1 Like

Yup!

1 Like

Hmm is there an issue with VS2017?

The current .NET SDK does not support targeting .NET Core 2.2.  Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.2.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I used VS 2019 to target 2.2
Not sure if you can target that with 2017 but there should be no different you should be able to change the version in the project to target 2.1

VS17 was hopeless for me but VS19 works.
I’m passing in a valid Token but it keeps falling through:

Here’s the ValidSession method:

Here’s the Token being passed in (we know it’s not null or empty, right??)

From there, it then jumps out of that if statement and right to the unauthorized BAQ msg

Have I lost my mind or what?? :sweat_smile:

EDIT: Should that be !string.IsNullOrEmpty(guid) instead?

EDIT 2: Ok got it to work with changing that following code like I said.
I also added in the following code after a RestClient is created, but this would just be for testing internally if you don’t want to mess around with a bunch of SSL stuff.

1 Like

Yup you got it
Sorry quick edit on the git removing some business specific checks I missed the ! on the last part of that good catch

I fixed it in the repo too

1 Like