Skip to content

How to extend Titiler to hit a STAC API using OAUTH 2 #1101

Answered by vincentsarago
dwyerb asked this question in Q&A
Discussion options

You must be logged in to vote

@dwyerb have you looked at https://github.com/stac-utils/titiler-pgstac ?

I believe I need to add a dependency to the stac routes (ie routes with a router_prefix equal to 'stac').

Yes

Is this possible? Does anyone have an example of doing something similar?

Yes, https://developmentseed.org/titiler/examples/code/tiler_with_auth/

But it is not clear to me how to extend or configure Titiler so that the 'stac' routes use the code to authenticate to the api.

I think the project you should look at is https://github.com/developmentseed/titiler-stacapi

It's a titiler module that connects to an external stac-API. There we forward the request headers https://github.com/developmentseed/titiler…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dwyerb
Comment options

Answer selected by dwyerb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants