-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I am trying to implement third-party authentication mechanism on front-end.
I'm trying to log in telegram web app into juno (because both nfid and internet identity work poorly in this environment)
Setup:
I have profiles table in juno (read: Public, write: Managed)
And i construct my identity in the following way:
const customIdentity = Ed25519KeyIdentity.generate()
// this doesnt work because reads are public :(
const profile = await getDoc({
collection: "profiles",
key: "123",
satellite: {
identity: customIdentity,
satelliteId: "n5isd-iaaaa-aaaal-adtra-cai",
}
})
// this works because reads are public
const profile = await getDoc({
collection: "profiles",
key: "123",
doc: {
username: "CodingFu"
},
satellite: {
identity: customIdentity,
satelliteId: "n5isd-iaaaa-aaaal-adtra-cai",
}
})
I understand for the fact that user does not exist on authentication tab.
How can I add user with custom provider there?
Is there any way i can "fake" authentication in juno?
I know that i can make my customIdentity
a controller for the satellite, but I can't do it for all the users. Plus I want to maintain "owner" field.
Please help!
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested