Comments (13)
Hi @chenop, I dont know about reCAPTCHA Enterprise, do you have any documentation about it?
from react-native-recaptcha-that-works.
Comparison
Recaptcha Enterprise
from react-native-recaptcha-that-works.
Looks like the client migration is simple.
https://cloud.google.com/recaptcha-enterprise/docs/using-features
from react-native-recaptcha-that-works.
Efetuei as modificações no arquivo get-template.js referente a https://cloud.google.com/recaptcha-enterprise/docs/using-features, mas mesmo assim minha sitekey não funciona.
Sua chave api: 6LejsqwZAAAAAGsmSDWH5g09dOyNoGMcanBllKPF, funciona corretamente.
Minha chave: 6LeWo-0bAAAAAEUZsokYlBi8E6LiXjIV87KrQL-w, retorna erro null.
Se possível demonstre o procedimento para criar uma sitekey.
from react-native-recaptcha-that-works.
Will the library work out of the box? when creating a mobile reCAPTCHA key for enterprise, it says to specify iOS or Android.
from react-native-recaptcha-that-works.
Today, this library uses WebView to work with reCAPTCHA v2 only. Currently, we have no plan to implement Enterprise mobile reCAPTCHA.
But, any contributions are welcome.
from react-native-recaptcha-that-works.
hmm I created a reCAPTCHA v3 key on https://www.google.com/u/1/recaptcha/admin/site/493612296 (not enterprise) and the library was able to verify and generate a token. Perhaps the library will work with v3 as long as it's not enterprise mobile?
from react-native-recaptcha-that-works.
Done in 1.2.0 https://github.com/douglasjunior/react-native-recaptcha-that-works/releases/tag/1.2.0
from react-native-recaptcha-that-works.
Does this lib work with recaptcha enterprise? If yes, then how? I created ios and android keys, as well as a web key and every one of them returns "Error: null" from the error callback. for a brief moment, we can see an error in the device screen
from react-native-recaptcha-that-works.
Does this lib work with recaptcha enterprise? If yes, then how? I created ios and android keys, as well as a web key and every one of them returns "Error: null" from the error callback. for a brief moment, we can see an error in the device screen !
Nothing special, just add enterprise={true}
:
<Recaptcha
ref={recaptcha}
siteKey="<your-recaptcha-public-key>"
baseUrl="http://my.domain.com"
onVerify={onVerify}
onExpire={onExpire}
enterprise={true}
/>
from react-native-recaptcha-that-works.
Nothing special, just add enterprise={true}:
Yes. I got that. But that is not the issue. The issue is how do I fill in the baseUrl field? iOS and Android keys don't have a baseURL / domain to define. You only define the app package name. And a web key does have a domain to define, but still does not work. What am I doing wrong?
My code:
const RecaptchaTest: React.FC = () => {
const recaptcha = useRef<RecaptchaHandles>(null)
const handleOpen = useCallback(() => {
console.log('open button!')
recaptcha.current?.open()
}, [])
const handleClose = useCallback(() => {
console.log('close button!')
recaptcha.current?.close()
}, [])
const onLoad = () => {
console.log('load!')
}
const onVerify = (token: string) => {
console.log('success!', token)
}
const onExpire = () => {
console.log('expired!')
}
const onError = (error: string) => {
console.log('Error: ', error)
}
const onClose = () => {
console.log('Close!')
}
return (
<View>
<Recaptcha
ref={recaptcha}
lang="en"
headerComponent={<Button title="Close" onPress={handleClose} />}
siteKey="6LckJ1gjAAAAAPUcfXRG3khTGDRJxiMTim-8ph1N"
baseUrl="com.anova.unify.go"
onVerify={onVerify}
onExpire={onExpire}
onError={onError}
onLoad={onLoad}
onClose={onClose}
size="normal"
enterprise={true}
action={'login'}
hideBadge={false}
/>
<Button title="Open" onPress={handleOpen} />
</View>
)
}
from react-native-recaptcha-that-works.
Yes. I got that. But that is not the issue. The issue is how do I fill in the baseUrl field? iOS and Android keys don't have a baseURL / domain to define. You only define the app package name. And a web key does have a domain to define, but still does not work. What am I doing wrong?
Take a look at #34
from react-native-recaptcha-that-works.
Got it working, but with two small caveats: I used the web key (not the iOS or Android key), and used the prop "size" as "invisible". Any other size will return the null error.
Thank you for the help @douglasjunior.
from react-native-recaptcha-that-works.
Related Issues (20)
- It always shows the challenges when open reCAPthcha. It happens in any situation. HOT 6
- [chore]: turn loading render optionally HOT 4
- In invisible size, custom domain is not working HOT 4
- Unable to close the modal of Recaptcha HOT 2
- I am not getting any response HOT 5
- Remove the loading indicator or activity indicator HOT 1
- Blocking the UI HOT 3
- TurboModuleRegistry.getEnforcing(...): 'RNCWebView' could not be found. Verify that a module by this name is registered in the native binary. HOT 2
- Chrome Certificate Transparency log list v2 turndown HOT 4
- Facing issue inside modals HOT 1
- Encountering 'onError' Triggered Issue with reCAPTCHA: Help Needed! HOT 1
- Support of React Native Web ? HOT 1
- Vertically center HOT 7
- Not working in production HOT 1
- Creating a site key for android and iOS HOT 5
- Image Selection Card White Background HOT 3
- [Android] Failed to call method WebViewMessageHandler1.onMessage() HOT 3
- I can't change the style of the recpatcha widget HOT 6
- Only size="invisible" is working when enterprise is true HOT 5
- reCAPTCHA SDK Update Inquiry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-recaptcha-that-works.