How is the authentication header in GraphDB constructed? - Stack Overflow

Can anyone tell me how I should programmatically construct an authentication request in GraphDB? In oth

Can anyone tell me how I should programmatically construct an authentication request in GraphDB? In other systems I have made a basic authentication request by appending a base64-encoded username and password onto the string "Basic ". It seems different in GraphDB; when I have done an authentication using the example (here: [server]/webapi) I see a string like this:

GDB eyJ1c2VybmFtZSI6ImFkbWluIiwiYXV0aGVudGljYXRlZEF0IjoxNzMyNzg3MDMyMDkyfQ==.iTPgyRG8ixE4VnPNJarCRepf6JletXq+WblC1BV83CQ=

This base64-decodes to something like this:

{"username":"admin","authenticatedAt":1732787032092}

I can see why this is sensible; I'd just like to know how to build it.

Can anyone tell me how I should programmatically construct an authentication request in GraphDB? In other systems I have made a basic authentication request by appending a base64-encoded username and password onto the string "Basic ". It seems different in GraphDB; when I have done an authentication using the example (here: [server]/webapi) I see a string like this:

GDB eyJ1c2VybmFtZSI6ImFkbWluIiwiYXV0aGVudGljYXRlZEF0IjoxNzMyNzg3MDMyMDkyfQ==.iTPgyRG8ixE4VnPNJarCRepf6JletXq+WblC1BV83CQ=

This base64-decodes to something like this:

{"username":"admin","authenticatedAt":1732787032092}

I can see why this is sensible; I'd just like to know how to build it.

Share Improve this question asked Nov 28, 2024 at 10:23 Ian PiperIan Piper 951 silver badge10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Well I found what I needed in the documentation.

https://graphdb.ontotext/documentation/10.8/access-control.html#basic-authentication

It looks like the REST API methods support Basic authentication as well as GDB, so I could just log in the same way that I do in other systems. I still don't know what I would do if I was forced to use GDB authentication, but I'm happy that it works using methods that I know.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745515613a4630977.html

相关推荐

  • How is the authentication header in GraphDB constructed? - Stack Overflow

    Can anyone tell me how I should programmatically construct an authentication request in GraphDB? In oth

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信